Changes

Jump to navigation Jump to search
no edit summary
Line 26: Line 26:  
The client use a html page and javascript to request the data needed as json, and format it as needed.
 
The client use a html page and javascript to request the data needed as json, and format it as needed.
   −
The activity starts the server only when is not joining another xo, if joining connect to the webserver through a  
+
The activity starts the server only when is not joining another xo, if joining connect to the webserver through a StreamTube
   −
Why use this? Can be a solution easily portable to android or to a school server.
+
Pros:
   −
Downsides:
+
* Can be a solution easily portable to android or to a school server.
 +
* A web view provide flexibility to experiment. Can be accessed using any browser pointing to http://0.0.0.0:2500/web/index.html to develop.
 +
* Different messages needed by collaboration are easy to implement
   −
*  
+
Cons:
 +
 
 +
* We need a mechanism to notify to the clients they should update the view.
 +
* A web view provide less control over the ui than the gtk controls.
 +
 
 +
Not implemented yet:
 +
 
 +
* Only the sharing of favorites items is implemented, the other two methods are not.
 +
* Upload a item to the teachers xo copy the metadata (including preview), but downloading do not do it.
 +
* We need a button to reescan the journal if favorites has changed.
 +
* When a kid download a item, the teacher does not receive any information about that. We should show in the page who are the kids who succesfully downloaded every item.
 +
* Comments are not implemented.
 +
 
 +
Known Bugs:
 +
 
 +
* When a user try to download, the ui is not responsive and do not show the alert until the download finish. The download manager is copied from Browse activity, but I don't know why is not working ok.
 +
 
 +
* When a user upload a file, the page show a message "3 files selected" because internally is uploading a file with the metadata and another with the preview. May be we can upload all zipped in one file.
 +
 
 +
* The server is running in another process, due than trying to run in a thread blocked the webkit ui (should be possible, wikipedia do it). At times, the activity closes but the child process (the web server) not, theen after that the only way to run the activity is kill the old process.
 +
 
 +
* Try to download a shared image open the image in the webkitview instead of download it.
 +
 
 +
<gallery>
 +
File:ScreenshotJournalShare1.png| UI in the server
 +
File:ScreenshotJournalShareActivity client.png| UI in the client, similar, but with buttons to download/upload
 +
</gallery>
    
= More info =  
 
= More info =  
Line 39: Line 67:     
ASLO: http://activities.sugarlabs.org/es-ES/sugar/addon/4656
 
ASLO: http://activities.sugarlabs.org/es-ES/sugar/addon/4656
 +
 +
 +
 +
 +
[[Category:Activities]]

Navigation menu