[Sugar-devel] FileShare Activity 7

Wade Brainerd wadetb at gmail.com
Sat Jan 16 21:06:21 EST 2010


Hi Justin,

I've been meaning to check out this activity for awhile.  It looks
great!  And I am starting to believe in enabling more functionality
like this through activities rather than adding them into the shell.
Things seem to happen a lot faster that way at least!

I downloaded v7 from ASLO on SoaS Blueberry tonight to test it out.  I
got this exception when trying to add the fileshare-7.xo bundle from
the Journal.

** (sugar-activity:1811): DEBUG: Got client ID
"103037e31b109a267c12636916924315100000008980010"
** (sugar-activity:1811): DEBUG: Setting initial properties
1263691692.144747 WARNING root: No gtk.AccelGroup in the top level window.
1263691692.151700 WARNING root: No gtk.AccelGroup in the top level window.
/usr/lib/python2.6/site-packages/sugar/graphics/window.py:290:
DeprecationWarning: use toolbar_box instead of toolbox
  warnings.warn('use toolbar_box instead of toolbox', DeprecationWarning)
** (sugar-activity:1811): DEBUG: Received SaveYourself(SmSaveLocal,
!Shutdown, SmInteractStyleNone, !Fast) in state idle
** (sugar-activity:1811): DEBUG: Sending SaveYourselfDone(True) for
initial SaveYourself
** (sugar-activity:1811): DEBUG: Received SaveComplete message in
state save-yourself-done
/usr/lib/python2.6/site-packages/dbus/connection.py:242:
DeprecationWarning: object.__init__() takes no parameters
  super(Connection, self).__init__(*args, **kwargs)
Traceback (most recent call last):
  File "/home/liveuser/Activities/FileShare.activity/GuiView.py", line
47, in requestAddFile
    file_obj = self.activity.build_file( jobject )
  File "/home/liveuser/Activities/FileShare.activity/FileShareActivity.py",
line 267, in build_file
    journalentrybundle.from_jobject(jobject, bundle_path )
  File "/home/liveuser/Activities/FileShare.activity/journalentrybundle.py",
line 49, in from_jobject
    b.set_metadata(jobject.get_metadata())
  File "/home/liveuser/Activities/FileShare.activity/journalentrybundle.py",
line 167, in set_metadata
    self.set_entry_id(entry_id)
  File "/home/liveuser/Activities/FileShare.activity/journalentrybundle.py",
line 85, in set_entry_id
    zip_file = zipfile.ZipFile(self._path,'a')
  File "/usr/lib/python2.6/zipfile.py", line 698, in __init__
    self._RealGetContents()
  File "/usr/lib/python2.6/zipfile.py", line 723, in _RealGetContents
    endrec = _EndRecData(fp)
  File "/usr/lib/python2.6/zipfile.py", line 201, in _EndRecData
    return _EndRecData64(fpin, -sizeEndCentDir, endrec)
  File "/usr/lib/python2.6/zipfile.py", line 147, in _EndRecData64
    fpin.seek(offset - sizeEndCentDir64Locator, 2)
IOError: [Errno 22] Invalid argument
1263693756.355801 WARNING root: No gtk.AccelGroup in the top level window.
1263693757.626212 WARNING root: No gtk.AccelGroup in the top level window.
1263693757.636758 WARNING root: No gtk.AccelGroup in the top level window.
1263693757.638275 WARNING root: No gtk.AccelGroup in the top level window.
1263693757.705847 WARNING root: DSObject was deleted without cleaning
up first. Call DSObject.destroy() before disposing it.
Activity died: pid 1811 condition 0 data (None, <open file '<fdopen>',
mode 'w' at 0xa169200>)

Also, the spinny status indicator looks a little odd on SoaS - might
be a resolution issue or something.

Best,
Wade

On Tue, Jan 12, 2010 at 6:23 PM, Justin Lewis <jtl1728 at rit.edu> wrote:
> FileShare is an activity that allows the user to share files from
> their journal to other xo's or to a central server.
>
> Activity Homepage:
> http://activities.sugarlabs.org/en-US/sugar/addon/4266
>
> Sugar Platform:
> 0.82 - 0.86
>
> Release notes:
> Improved gui response.
> * Gui is now dispatching threads for long blocking calls.
> * Throbber is shown while gui is running a blocking call.
>
> Improved server interaction when in "Server Mode"
> * Basic permission system
> * Admin view to change user permissions
> * Fixed hang (added 10 second timeout) when server is set but offline
>
> Fixed "Keep Error" bug with empty file list
>
> Other Notes:
> This project has not undergone any extensive testing, so please feel
> free to send feedback and bug reports.
>
> Justin Lewis
> http://people.rit.edu/~jtl1728
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>


More information about the Sugar-devel mailing list