Re: [Zope] generic setup&workflow: how to add to binding??

2008-12-08 Thread robert rottermann
thanks Jean-Michel, Jean-Michel FRANCOIS schrieb: > > > > > > > > > > > > this unfortunately *replaces* the entries in the binding. I would like to add to the existing ones. I can do that by running an old fasion install script but would prefere to do it "rigth". than

[Zope] pb with attach file

2008-12-08 Thread blondelle
Hello, Few months ago, I send my problem with attach file with Zope 2.6 and higher. How I have no solution, I send again my problem which is described after Thanks to help me Frederique --- I have created a zclass with zfile as basic class. With this class, users could, v

Re: [Zope] generic setup&workflow: how to add to binding??

2008-12-08 Thread Jean-Michel FRANCOIS
Yes you can, Plone do it with generic setup. - Register your profile (take a look at GenericSetup documentation) - take a look here: https://svn.plone.org/svn/plone/CMFPlone/tags/3.1.4/profiles/default/ (worflows.xml register the workflows, workflows folder contains them) look like that;

[Zope] sorting ids in python

2008-12-08 Thread Garry Saddington
Can anyone help me sort the following by id in a python script? for object in context.objectValues(['Folder', 'DTML Document','ZipFolder','File','Image']): Import of sequence is not authorised in my python scripts, I am presuming (probably wrongly) that sequence is needed for sort. Regards Garr

Re: [Zope] Multiple zope instances using the same storage

2008-12-08 Thread Dieter Maurer
Mark Gibson wrote at 2008-12-6 11:22 -0700: >I have an unusual setup. I have 4 distinct Zope instances (4 seperate >Data.fs'). Each Data.fs is identical - Data is kept in a RDBMS. I have >a product I need to install that stores data in the ZODB. This data is >stored in one folder. > >Now, I

Re: [Zope] pb with attach file

2008-12-08 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2008-12-8 11:43 +0100: > ... >Few months ago, I send my problem with attach file with Zope 2.6 and higher. >How I have no solution, I send again my problem which is described after > > >Thanks to help me > >Frederique > >--- > >I have created a zclass

Re: [Zope] sorting ids in python

2008-12-08 Thread Andreas Jung
On 08.12.2008 18:18 Uhr, Garry Saddington wrote: Can anyone help me sort the following by id in a python script? for object in context.objectValues(['Folder', 'DTML Document','ZipFolder','File','Image']): ids = context.objectIds() ids.sort() -aj begin:vcard fn:Andreas Jung n:Jung;Andreas or

Re: [Zope] Multiple zope instances using the same storage

2008-12-08 Thread Mark Gibson
Dieter Maurer wrote: > Mark Gibson wrote at 2008-12-6 11:22 -0700: >> I have an unusual setup. I have 4 distinct Zope instances (4 seperate >> Data.fs'). Each Data.fs is identical - Data is kept in a RDBMS. I have >> a product I need to install that stores data in the ZODB. This data is >> s

Re: [Zope] sorting ids in python

2008-12-08 Thread Andreas Jung
On 08.12.2008 19:23 Uhr, Andreas Jung wrote: On 08.12.2008 18:18 Uhr, Garry Saddington wrote: Can anyone help me sort the following by id in a python script? for object in context.objectValues(['Folder', 'DTML Document','ZipFolder','File','Image']): ids = context.objectIds() Possibly you

Re: [Zope] sorting ids in python

2008-12-08 Thread robert rottermann
Garry Saddington schrieb: > Can anyone help me sort the following by id in a python script? > > for object in context.objectValues(['Folder', 'DTML > Document','ZipFolder','File','Image']): objs=context.objectValues(['Folder', 'DTMLDocument','ZipFolder','File','Image']) objs.sort() for o in objs

Re: [Zope] How manage error with zsql

2008-12-08 Thread Miguel Beltran R.
I trying the next, but not work say " invalid syntax (Script (Python), line 11)" 2008/12/6 robert rottermann <[EMAIL PROTECTED]> > hi, > > I think you should write in a python script: > > try: > result = context.insert_data.zsql > msg = 'data inserted' > except StandardError as e:

Re: [Zope] sorting ids in python

2008-12-08 Thread Andreas Jung
On 08.12.2008 21:11 Uhr, robert rottermann wrote: Garry Saddington schrieb: Can anyone help me sort the following by id in a python script? for object in context.objectValues(['Folder', 'DTML Document','ZipFolder','File','Image']): objs=context.objectValues(['Folder', 'DTMLDocument','ZipFolde

Re: [Zope] sorting ids in python

2008-12-08 Thread robert rottermann
Andreas Jung schrieb: > On 08.12.2008 21:11 Uhr, robert rottermann wrote: >> Garry Saddington schrieb: >>> Can anyone help me sort the following by id in a python script? >>> >>> for object in context.objectValues(['Folder', 'DTML >>> Document','ZipFolder','File','Image']): >> >> objs=context.objec