Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/serialize.py
diff options
context:
space:
mode:
authorerikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-02 02:05:57 (GMT)
committer erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0>2007-11-02 02:05:57 (GMT)
commitc1464f5c02fe0d80579a3e7b09dd95696a5b0d3d (patch)
tree785b43e6a0f39a60cfeca160435fc823ac38b4e4 /serialize.py
parent6eb0a98efae33390dc6c0aad1aaee81cb6628fb1 (diff)
grayscale and other changes
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@841 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'serialize.py')
-rw-r--r--serialize.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/serialize.py b/serialize.py
index 25d183f..9c1d009 100644
--- a/serialize.py
+++ b/serialize.py
@@ -38,7 +38,7 @@ def _loadMediaIntoHash( el, hash ):
#quickly check: if you have a datastoreId that the file hasn't been deleted,
#cause if you do, we need to flag your removal
#2904 trac
- recd.datastoreOb = _getMediaFromDatastore( recd )
+ recd.datastoreOb = getMediaFromDatastore( recd )
if (recd.datastoreOb == None):
addToHash = False
else:
@@ -54,7 +54,7 @@ def _loadMediaIntoHash( el, hash ):
hash.append( recd )
-def _getMediaFromDatastore( recd ):
+def getMediaFromDatastore( recd ):
if (recd.datastoreId == None):
print("RecordActivity error -- request for recd from datastore with no datastoreId")
return None
@@ -273,7 +273,7 @@ def _saveMediaToDatastore( el, recd ):
#already saved to the datastore, don't need to re-rewrite the file since the mediums are immutable
#However, they might have changed the name of the file
if (recd.titleChange):
- recd.datastoreOb = _getMediaFromDatastore( recd )
+ recd.datastoreOb = getMediaFromDatastore( recd )
if (recd.datastoreOb.metadata['title'] != recd.title):
recd.datastoreOb.metadata['title'] = recd.title
datastore.write(recd.datastoreOb)