| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
| |
The implementation create a png at server side. Can be improved usinga
svg and changing the colors at the client side.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
| |
After download a object and save it in the Journal, the client send a message
and the server update the metadata to include downloader information.
The view is not updated yet.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
| |
Now the upload from all sides is done with the add button in the
toolbar. The ui is not blocked, only a watch cursor is shown,
while the file is uploaded.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
| |
This allow have more than one instance running at the same time
and improve reliability, if for any reason the port is in use.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
| |
|
| |
|
|
|
|
|
|
|
| |
Only one message is sent, when the shared items list is updated
This is a proof of concept.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
| |
If you add the argument "v" StaticFileHandler will set the header
to be cached on the client for ever.
http://www.tornadoweb.org/en/stable/web.html?highlight=staticfilehandler#tornado.web.StaticFileHandler
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
|
| |
In preparation to use websockets to notify the clients of changes,
changed the server to use tornado instead of BasicHttpServer.
The code is simplified and works fast.
I added the needed tornado files to the activity until we decide
if will be used as a global solution for web activities.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
| |
When a file is uploaded, the client need reload the index page,
but need wait until the server prepared the files.
Now reply with a page to reload the index page after a 3 secs timeout.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To upload or download a journal object, is zipped with a file with
the preview and another with the metadata in json format.
The save methods are used to package/unpackage when download or upload.
This solve a few issues:
* metadata & preview transference.
* simplify the code because only one file is transfered.
* the downloadmanager is always used, because webkit don't know
how manage the mime type used (solve error with images captured by
webkit)
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
| |
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
| |
The list of shared items is saved
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
| |
The msg is not localizable.
We need look at a away to use gettext on html pages or any other
solution to display a translated msg.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
| |
A button add items to share from the journal,
another add all the fevorite items, but should be selected explicitly
by the user.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
| |
As the web ask is tserver can't read the datastore because is in another thread
the activity prepare the files to be served in thier /instance/
directory before the server starts. Later we need implement
updating the files when the selection is changed.
A pending task is test uploading a file from another client.
The JournalManager class was moved from server.py to activity.py
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
| |
While the activity is not frozen, now the activity crash at random
mostly by the use of dbus. Tryed different solutions but without
success. This change is committed as a intermadiate stage.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
| |
|
|
|
|
|
|
| |
This is done in the index.html with javascript.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
| |
Until wake up on lan works.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
| |
If the activity is started sharing, should not try to connect
to the local server.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
| |
Move the save of uploaded file to the journal to the JournalManager
class.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
| |
This is needed due to Record activity (SL #4470)
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
|
|
|
| |
The filepicker is modified to create two files more, one with the preview,
and another with the metadata as a json dump.
The activity upload the 3 files, and the server put all the info in the
new object created in the journal.
One downside in this implementation is webkit show a message "3 files
selected", while the user selected one.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
|
| |
Basic implementation. Have some limitations,
as not be able to upload all the metadata at the moment.
Metadata will be uploaded in annother commit.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
|
| |
Used code from Read activity to share the server trough a
telepathy stream tube.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
| |
Stolen from Browse activity.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The server creates a json file with data about starred items
in the journal. The webkit display a html file with a javascript
to put the data in a table. Css is not working.
A download link allows download the file, but the client code
to download it is not included yet.
Is possible see the page to debug and download the file pointing
a browser to http://localhost:2500/web/index.html
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Afte trying run the server in a thread and having problems
due to webkit bloking the ui, I implemented the server in another
package and start it in another process with subproces.
This solution solves the problem, and provide separation,
but can complicate other parts in the code, like collaboration.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
|
|
|
|
|
| |
With code copied from Read and Wikipedia, just to start.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
|
| |
|