[Erp5-report] r12745 - in /spec/debian/erp5-cmfphoto: ./ CMFPhoto/ CMFPhoto/Extensions/ CMF...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 15 17:47:03 CET 2007
Author: yusei
Date: Thu Feb 15 17:47:00 2007
New Revision: 12745
URL: http://svn.erp5.org?rev=12745&view=rev
Log:
commit debian(unstable) packages.
Added:
spec/debian/erp5-cmfphoto/
spec/debian/erp5-cmfphoto/CMFPhoto/
spec/debian/erp5-cmfphoto/CMFPhoto/CMFPhoto.py
spec/debian/erp5-cmfphoto/CMFPhoto/CMFPhotoFolder.py
spec/debian/erp5-cmfphoto/CMFPhoto/Extensions/
spec/debian/erp5-cmfphoto/CMFPhoto/README
spec/debian/erp5-cmfphoto/CMFPhoto/__init__.py
spec/debian/erp5-cmfphoto/CMFPhoto/debian/
spec/debian/erp5-cmfphoto/CMFPhoto/refresh.txt
spec/debian/erp5-cmfphoto/CMFPhoto/skins/
spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5.diff.gz (with props)
spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5.dsc
spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_all.deb (with props)
spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_i386.build
spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_i386.changes
spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3.orig.tar.gz (with props)
Added: spec/debian/erp5-cmfphoto/CMFPhoto/CMFPhoto.py
URL: http://svn.erp5.org/spec/debian/erp5-cmfphoto/CMFPhoto/CMFPhoto.py?rev=12745&view=auto
==============================================================================
--- spec/debian/erp5-cmfphoto/CMFPhoto/CMFPhoto.py (added)
+++ spec/debian/erp5-cmfphoto/CMFPhoto/CMFPhoto.py Thu Feb 15 17:47:00 2007
@@ -1,0 +1,135 @@
+
+from AccessControl import ClassSecurityInfo
+from Globals import InitializeClass
+
+from Products.CMFCore.CMFCorePermissions import View, ManageProperties, ModifyPortalContent
+
+from Products.CMFCore.PortalContent import PortalContent
+from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl
+
+from Products.Photo.Photo import Photo
+
+def addCMFPhoto(
+ self,
+ id,
+ title='',
+ file='',
+ store='Image',
+ engine='ImageMagick',
+ quality=75,
+ pregen=0,
+ timeout=0):
+ """
+ Add a Photo
+ """
+
+ photo = CMFPhoto(id, title, file, store, engine, quality, pregen, timeout)
+ photo._data = ''
+ self._setObject(id, photo)
+
+factory_type_information = {
+ 'id' : 'Photo',
+ 'meta_type' : 'CMFPhoto',
+ 'description' : 'A Photo.',
+ 'icon' : 'image_icon.gif',
+ 'product' : 'CMFPhoto',
+ 'factory' : 'addCMFPhoto',
+ 'filter_content_types' : 0,
+ 'immediate_view' : 'metadata_edit_form',
+ 'actions' :
+ ( { 'id' : 'view',
+ 'name' : 'View',
+ 'action' : 'photo_view',
+ 'permissions' : (View, )
+ },
+ { 'id' : 'edit',
+ 'name' : 'Edit',
+ 'action' : 'photo_edit_form',
+ 'permissions' : (ModifyPortalContent, )
+ },
+ { 'id' : 'metadata',
+ 'name' : 'Metadata',
+ 'action' : 'metadata_edit_form',
+ 'permissions' : (ModifyPortalContent, )
+ }
+ )
+ }
+
+class CMFPhoto(Photo, PortalContent, DefaultDublinCoreImpl):
+ """
+ """
+
+ meta_type = 'CMFPhoto'
+ portal_type = 'CMFPhoto'
+
+ def __init__(self,
+ id,
+ title='',
+ file='',
+ store='Image',
+ engine='ImageMagick',
+ quality=75,
+ pregen=0,
+ timeout=0,
+ ):
+
+ Photo.__init__(self, id=id, title=title, file=file, store=store, engine=engine, quality=quality, pregen=pregen, timeout=timeout)
+ DefaultDublinCoreImpl.__init__(self)
+
+ self.id = id
+ self.title=title
+
+ security = ClassSecurityInfo()
+
+ def SearchableText(self):
+ """
+ SeachableText is used for full text seraches of a portal.
+ It should return a concatanation of all useful text.
+ """
+
+ return "%s %s" % (self.title, self.description)
+
+ def manage_afterClone(self, item):
+ """Both of my parents have an afterClone method"""
+ Photo.manage_afterClone(self,item)
+ PortalContent.manage_afterClone(self,item)
+
+ def manage_afterAdd(self, item, container):
+ """Both of my parents have an afterAdd method"""
+ Photo.manage_afterAdd(self,item,container)
+ PortalContent.manage_afterAdd(self, item, container)
+
+ def manage_beforeDelete(self, item, container):
+ """Both of my parents have a beforeDelete method"""
+ PortalContent.manage_beforeDelete(self, item, container)
+ Photo.manage_afterAdd(self,item,container)
+
+ security.declareProtected('Access contents information', 'nextPhoto')
+ def nextPhoto(self):
+ """Return next Photo in folder."""
+ id = self.getId()
+ photoIds = self.aq_parent.contentIds(spec='CMFPhoto')
+ if id == photoIds[-1]:
+ return None
+ return getattr(self.aq_parent, photoIds[photoIds.index(id)+1]).absolute_url()
+
+ security.declareProtected('Access contents information', 'prevPhoto')
+ def prevPhoto(self):
+ """Return previous Photo in folder."""
+ id = self.getId()
+ photoIds = self.aq_parent.contentIds(spec='CMFPhoto')
+ if id == photoIds[0]:
+ return None
+ return getattr(self.aq_parent, photoIds[photoIds.index(id)-1]).absolute_url()
+
+ security.declareProtected('Access contents information', 'tag')
+ def tag(self, display=None, height=None, width=None, cookie=0,
+ alt=None, css_class=None, **kw):
+ """Return HTML img tag."""
+ try:
+ return Photo.tag(self, display, height, width, cookie, alt, css_class)
+ except:
+ return '%s is broken!' % self.title_or_id()
+
+InitializeClass(CMFPhoto)
+
Added: spec/debian/erp5-cmfphoto/CMFPhoto/CMFPhotoFolder.py
URL: http://svn.erp5.org/spec/debian/erp5-cmfphoto/CMFPhoto/CMFPhotoFolder.py?rev=12745&view=auto
==============================================================================
--- spec/debian/erp5-cmfphoto/CMFPhoto/CMFPhotoFolder.py (added)
+++ spec/debian/erp5-cmfphoto/CMFPhoto/CMFPhotoFolder.py Thu Feb 15 17:47:00 2007
@@ -1,0 +1,122 @@
+from AccessControl import ClassSecurityInfo
+from Globals import InitializeClass
+
+from Products.CMFCore.CMFCorePermissions import View, ManageProperties
+
+from Products.CMFDefault.SkinnedFolder import SkinnedFolder
+from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl
+
+from Products.Photo.PhotoFolder import PhotoFolder
+
+from ZTUtils import Batch
+
+def addCMFPhotoFolder(
+ self,
+ id,
+ title='',
+ store='Image',
+ engine='ImageMagick',
+ quality=75,
+ pregen=0,
+ timeout=0):
+ """
+ Add a Photo Folder
+ """
+
+ photofolder = CMFPhotoFolder(id, title, store, engine, quality, pregen, timeout)
+ self._setObject(id, photofolder)
+
+factory_type_information = {
+ 'id' : 'Photo Folder',
+ 'meta_type' : 'CMFPhotoFolder',
+ 'description' :
+ """A PhotoFolder has content and behaves like a folder.""",
+ 'icon' : 'folder_icon.gif',
+ 'product' : 'CMFPhoto',
+ 'factory' : 'addCMFPhotoFolder',
+ 'filter_content_types' : 1,
+ 'allowed_content_types' : ('Photo',),
+ 'immediate_view' : 'folder_contents',
+ 'actions' :
+ ( { 'id' : 'view',
+ 'name' : 'View',
+ 'action' : 'photo_folder_view',
+ 'permissions' : (View,),
+ 'category' : 'folder'
+ },
+ { 'id' : 'edit',
+ 'name' : 'Edit',
+ 'action' : 'folder_edit_form',
+ 'permissions' : (ManageProperties,),
+ 'category' : 'folder'
+ },
+ { 'id' : 'localroles',
+ 'name' : 'Local Roles',
+ 'action' : 'folder_localrole_form',
+ 'permissions' : (ManageProperties,),
+ 'category' : 'folder'
+ },
+ { 'id' : 'syndication',
+ 'name' : 'Syndication',
+ 'action' : 'synPropertiesForm',
+ 'permissions' : (ManageProperties,),
+ 'category' : 'folder'
+ }
+ )
+ }
+
+class CMFPhotoFolder(SkinnedFolder, PhotoFolder, DefaultDublinCoreImpl):
+ """
+ """
+
+ meta_type = 'CMFPhotoFolder'
+ portal_type = 'CMFPhotoFolder'
+
+ security = ClassSecurityInfo()
+
+ def __init__(self,
+ id,
+ title='',
+ store='Image',
+ engine='ImageMagick',
+ quality=75,
+ pregen=0,
+ timeout=0,
+ ):
+
+ PhotoFolder.__init__(self, id, title, store, engine, quality, pregen, timeout)
+ DefaultDublinCoreImpl.__init__(self)
+
+ self.id = id
+ self.title=title
+
+ security.declarePublic('getGroupsOfN')
+ def getGroupsOfN(self, at_a_time):
+ b = Batch(self.listFolderContents('CMFPhoto'), at_a_time, orphan=0)
+ batches = [b]
+ while b.next:
+ b = b.next
+ batches.append(b)
+
+ return batches
+
+ security.declareProtected('Access contents information', 'nextAlbum')
+ def nextAlbum(self):
+ """Return next PhotoFolder in folder."""
+ id = self.getId()
+ albumIds = self.aq_parent.contentIds(spec='CMFPhotoFolder')
+ if id == albumIds[-1]:
+ return None
+ return getattr(self.aq_parent, albumIds[albumIds.index(id)+1]).absolute_url()
+
+ security.declareProtected('Access contents information', 'prevAlbum')
+ def prevAlbum(self):
+ """Return previous PhotoFolder in folder."""
+ id = self.getId()
+ albumIds = self.aq_parent.contentIds(spec='CMFPhotoFolder')
+ if id == albumIds[0]:
+ return None
+ return getattr(self.aq_parent, albumIds[albumIds.index(id)-1]).absolute_url()
+
+InitializeClass(CMFPhotoFolder)
+
Added: spec/debian/erp5-cmfphoto/CMFPhoto/README
URL: http://svn.erp5.org/spec/debian/erp5-cmfphoto/CMFPhoto/README?rev=12745&view=auto
==============================================================================
--- spec/debian/erp5-cmfphoto/CMFPhoto/README (added)
+++ spec/debian/erp5-cmfphoto/CMFPhoto/README Thu Feb 15 17:47:00 2007
@@ -1,0 +1,16 @@
+
+INSTALLATION:
+
+ * Zope 2.5 - http://www.zope.org
+
+ * Plone 0.9.9 preview 5 - http://www.plone.org
+
+ * CMF 1.2 - http://cmf.zope.org
+
+ * Photo 1.2.3 - http://www.zope.org/Members/rbickers/Photo
+
+ Add and run Extenstions/Install/install as an external method after plone is installed.
+
+CONTACT:
+
+ magnus.heino at home.se
Added: spec/debian/erp5-cmfphoto/CMFPhoto/__init__.py
URL: http://svn.erp5.org/spec/debian/erp5-cmfphoto/CMFPhoto/__init__.py?rev=12745&view=auto
==============================================================================
--- spec/debian/erp5-cmfphoto/CMFPhoto/__init__.py (added)
+++ spec/debian/erp5-cmfphoto/CMFPhoto/__init__.py Thu Feb 15 17:47:00 2007
@@ -1,0 +1,26 @@
+import sys
+import CMFPhotoFolder
+import CMFPhoto
+from Products.CMFCore import utils, DirectoryView
+
+ADD_CONTENT_PERMISSION = 'Add portal content' # disgusting isn't it ?
+
+bases = (CMFPhotoFolder.CMFPhotoFolder, CMFPhoto.CMFPhoto)
+
+this_module = sys.modules[__name__]
+z_bases = utils.initializeBasesPhase1(bases, this_module)
+
+photo_globals = globals()
+
+DirectoryView.registerDirectory('skins', globals())
+
+def initialize(registrar):
+ utils.initializeBasesPhase2(z_bases, registrar)
+ utils.ContentInit(
+ 'CMFPhoto',
+ content_types = bases,
+ permission = ADD_CONTENT_PERMISSION,
+ extra_constructors = (CMFPhotoFolder.addCMFPhotoFolder, CMFPhoto.addCMFPhoto),
+ fti = (CMFPhotoFolder.factory_type_information, CMFPhoto.factory_type_information),
+ ).initialize(registrar)
+
Added: spec/debian/erp5-cmfphoto/CMFPhoto/refresh.txt
URL: http://svn.erp5.org/spec/debian/erp5-cmfphoto/CMFPhoto/refresh.txt?rev=12745&view=auto
==============================================================================
(empty)
Added: spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5.diff.gz
URL: http://svn.erp5.org/spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5.diff.gz?rev=12745&view=auto
==============================================================================
Binary file - no diff available.
Propchange: spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5.diff.gz
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5.dsc
URL: http://svn.erp5.org/spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5.dsc?rev=12745&view=auto
==============================================================================
--- spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5.dsc (added)
+++ spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5.dsc Thu Feb 15 17:47:00 2007
@@ -1,0 +1,12 @@
+Format: 1.0
+Source: erp5-cmfphoto
+Version: 1.2.3-1erp5
+Binary: erp5-cmfphoto
+Maintainer: Yusei TAHARA
+Architecture: all
+Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5.0)
+Build-Depends-Indep: zope-debhelper (>= 0.3.6)
+Files:
+ 1acc1142adb102d60d677a66fa65bbb1 5616 erp5-cmfphoto_1.2.3.orig.tar.gz
+ 15e1c017a2bd28436edd33481f204e52 1218 erp5-cmfphoto_1.2.3-1erp5.diff.gz
Added: spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_all.deb
URL: http://svn.erp5.org/spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_all.deb?rev=12745&view=auto
==============================================================================
Binary file - no diff available.
Propchange: spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_all.deb
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_i386.build
URL: http://svn.erp5.org/spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_i386.build?rev=12745&view=auto
==============================================================================
--- spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_i386.build (added)
+++ spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_i386.build Thu Feb 15 17:47:00 2007
@@ -1,0 +1,34 @@
+ fakeroot debian/rules clean
+dh_testdir
+dh_testroot
+rm -f build-stamp configure-stamp
+dh_clean
+ dpkg-source -b CMFPhoto
+dpkg-source: warning: source directory `./CMFPhoto' is not <sourcepackage>-<upstreamversion> `erp5-cmfphoto-1.2.3'
+dpkg-source: warning: .orig directory name CMFPhoto.orig is not <package>-<upstreamversion> (wanted erp5-cmfphoto-1.2.3.orig)
+dpkg-source: building erp5-cmfphoto using existing erp5-cmfphoto_1.2.3.orig.tar.gz
+dpkg-source: building erp5-cmfphoto in erp5-cmfphoto_1.2.3-1erp5.diff.gz
+dpkg-source: building erp5-cmfphoto in erp5-cmfphoto_1.2.3-1erp5.dsc
+ debian/rules build
+touch build-stamp
+ fakeroot debian/rules binary
+dh_testdir
+dh_testroot
+dh_clean -k
+dh_installdirs
+dh_installerp5zope .
+dh_testdir
+dh_testroot
+dh_installdocs
+dh_installexamples
+dh_installchangelogs
+dh_compress
+dh_fixperms
+dh_installdeb
+dh_gencontrol
+dh_md5sums
+dh_builddeb
+dpkg-deb: `../erp5-cmfphoto_1.2.3-1erp5_all.deb' ¤Ë¥Ñ¥Ã¥±¡¼¥¸ `erp5-cmfphoto' ¤ò¹½ÃÛ¤·¤Æ¤¤¤Þ¤¹¡£
+ dpkg-genchanges
+dpkg-genchanges: not including original source code in upload
+dpkg-buildpackage (debuild emulation): binary and diff upload (original source NOT included)
Added: spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_i386.changes
URL: http://svn.erp5.org/spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_i386.changes?rev=12745&view=auto
==============================================================================
--- spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_i386.changes (added)
+++ spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3-1erp5_i386.changes Thu Feb 15 17:47:00 2007
@@ -1,0 +1,20 @@
+Format: 1.7
+Date: Wed, 14 Feb 2007 03:27:56 +0900
+Source: erp5-cmfphoto
+Binary: erp5-cmfphoto
+Architecture: source all
+Version: 1.2.3-1erp5
+Distribution: unstable
+Urgency: low
+Maintainer: Yusei TAHARA
+Changed-By: Yusei TAHARA <yusei at domen.cx>
+Description:
+ erp5-cmfphoto - Custom version for ERP5 of the official CMFPhoto Zope product
+Changes:
+ erp5-cmfphoto (1.2.3-1erp5) unstable; urgency=low
+ .
+ * Initial Release.
+Files:
+ 40f9260b60c175963220435852793f4c 378 web optional erp5-cmfphoto_1.2.3-1erp5.dsc
+ 15e1c017a2bd28436edd33481f204e52 1218 web optional erp5-cmfphoto_1.2.3-1erp5.diff.gz
+ 30ef606a30a58b054563fb77bb80fc89 8004 web optional erp5-cmfphoto_1.2.3-1erp5_all.deb
Added: spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3.orig.tar.gz
URL: http://svn.erp5.org/spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3.orig.tar.gz?rev=12745&view=auto
==============================================================================
Binary file - no diff available.
Propchange: spec/debian/erp5-cmfphoto/erp5-cmfphoto_1.2.3.orig.tar.gz
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
More information about the Erp5-report
mailing list