Re: [Zope] adding value to the path

2007-02-13 Thread Jonathan
- Original Message - From: "Kate Legere" <[EMAIL PROTECTED]> To: "'Jonathan'" <[EMAIL PROTECTED]>; Sent: Tuesday, February 13, 2007 4:51 PM Subject: RE: [Zope] adding value to the path Thanks for the clean-up - I was trying && and not getting anywhere. That said, using the text fie

RE: [Zope] adding value to the path

2007-02-13 Thread Kate Legere
Thanks for the clean-up - I was trying && and not getting anywhere. That said, using the text field as an input method and then passing it on doesn't work either. If it helps - I'd like the user to be able to modify the properties of a DTML Document that they choose from a single edit form. I

Re: [Zope] External Method importing modules

2007-02-13 Thread Dieter Maurer
Alan wrote at 2007-2-13 13:10 +: >if sys.path.count(myPath) == 0: sys.path.insert(0, myPath) > >where myPath should be '[Zope installation folder]/instance/import'. >So my question now is: is there a variable inside Zope which can >returns the 'import' path? Formerly, the "ExternalMethod" docu

Re: [Zope] Re: Extract Files from ZODB

2007-02-13 Thread Jonathan
- Original Message - From: "Jonathan" <[EMAIL PROTECTED]> To: ; "Carlosfocker" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2007 4:05 PM Subject: Re: [Zope] Re: Extract Files from ZODB - Original Message - From: "Carlosfocker" <[EMAIL PROTECTED]> To: Sent: Tuesday, Feb

Re: [Zope] strange image error

2007-02-13 Thread Dieter Maurer
Oliver Petznick wrote at 2007-2-13 13:16 +0100: >aloha zopers. > >i have a zope2.9 instance installed on a freebsd box - zope is >installed out of the ports - python2.4 also. if i request a image >bigger than about 100kb from the server it stops loading after some >bytes and fires this error

Re: [Zope] Re: Extract Files from ZODB

2007-02-13 Thread Jonathan
- Original Message - From: "Carlosfocker" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 13, 2007 3:57 PM Subject: [Zope] Re: Extract Files from ZODB Is that Python? Where should I be executing this code. Do I create a python script? I'm not a python programmer. If you can help gu

[Zope] Re: Extract Files from ZODB

2007-02-13 Thread Carlosfocker
Is that Python? Where should I be executing this code. Do I create a python script? I'm not a python programmer. If you can help guide help I would be grateful. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cros

Re: [Zope] adding value to the path

2007-02-13 Thread Jonathan
- Original Message - From: "Kate Legere" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 13, 2007 3:38 PM Subject: [Zope] adding value to the path When I submit this: It works very nicely. I'd like the user to choose the page to amend so I have a select option to choose the p

[Zope] adding value to the path

2007-02-13 Thread Kate Legere
When I submit this: It works very nicely. I'd like the user to choose the page to amend so I have a select option to choose the page (in this case the one named 'branch' And I think this ought to work.. but it doesn'

Re: [Zope] Extract Files from ZODB

2007-02-13 Thread Jonathan
- Original Message - From: "Carlosfocker" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 13, 2007 1:25 PM Subject: [Zope] Extract Files from ZODB I have a ZODB that was being used by Plone to store files(Word documents, Images, etc.). Plone is no longer working. I want to extract

[Zope] Extract Files from ZODB

2007-02-13 Thread Carlosfocker
I have a ZODB that was being used by Plone to store files(Word documents, Images, etc.). Plone is no longer working. I want to extract (retrieve) the files from the ZODB. Is this possible? If so, how is this accomplished. Note: I cannot access Plone or anything in Plone because it is not working.

[Zope] Re: External Method importing modules

2007-02-13 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan wrote: > Dear Andreas and Jonathan, first a mistake: I want to access > 'Extensions' folder as you mentioned Jonathan, not 'import'. > > Andreas, I've done that, I can see several path there like > .../instance/Products/Sprout/src, .../lib/python

Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski
javi, please, STAY on the mailing list! > i put this in a new extractCredentials but it don´t work: Again... what 'don't work' means? Raises exception? Have you tried to debug your code? Maybe try to use pdb? AFAIR there is a nice tutorial about using pdb with plone. I think this should help you

[Zope] Re: user attributes

2007-02-13 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan wrote: > Dears, > > I have in a external method > > user = REQUEST.AUTHENTICATED_USER > > And so I can get user.getUserName(), user.getAllGroupNames() but I > cannot find how to get user's full name and user's e-mail. Any idea? > > Many thanks

Re: [Zope] Z SQL Method properties

2007-02-13 Thread Andrew Milton
+---[ David VanKirk ]-- | Does anyone know of a way that I can write a script to traverse | through a folder of Z SQL Methods and find out the connection ID for | each? for o in container.objectValues(['Z SQL Method',]): print o.id, o.connection_id return printed --

[Zope] Z SQL Method properties

2007-02-13 Thread David VanKirk
Does anyone know of a way that I can write a script to traverse through a folder of Z SQL Methods and find out the connection ID for each? Reason being, I have two connections objects for my ZSQL Methods to use. I'm trying to phase out the one and I'd like to write a script to tell me which ZSQL

Re: [Zope] External Method importing modules

2007-02-13 Thread Alan
Well, I did it: from App.config import getConfiguration extPath = getConfiguration().instancehome+'/Extensions' if sys.path.count(extPath) == 0: sys.path.insert(0, extPath) And it worked for what I wanted. On 13/02/07, Alan <[EMAIL PROTECTED]> wrote: On 13/02/07, Andreas Jung <[EMAIL PROTECTED

Re: [Zope] External Method importing modules

2007-02-13 Thread Alan
Dear Andreas and Jonathan, first a mistake: I want to access 'Extensions' folder as you mentioned Jonathan, not 'import'. Andreas, I've done that, I can see several path there like .../instance/Products/Sprout/src, .../lib/python/Zope2/Startup etc., but none for .../instance/Extensions. I was ho

[Zope] Zope 3 Boot Camp early bird registration deadline near

2007-02-13 Thread Chris Calloway
The early bird registration deadline for Camp 5 and the BBQ Sprint is Wednesday, February 14: http://trizpug.org/boot-camp/camp5/ You can save $50 by registering early. Registration ends Friday March 2. -- Sincerely, Chris Calloway http://www.seacoos.org office: 332 Chapman Hall phone: (919)

Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski
> this is my plugin. i want to authenticatedCredentials take credentials > and validate these credentials if user exists in acl_users . > ExtractCredentials take login and password from Form and it send that > information to authenticatedCredentials, so i start like a Member. > Now, it don´t work

Re: [Zope] External Method importing modules

2007-02-13 Thread Jonathan
- Original Message - From: "Alan" <[EMAIL PROTECTED]> To: "Andreas Jung" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, February 13, 2007 8:10 AM Subject: Re: [Zope] External Method importing modules Thanks Andreas, I am trying with: if sys.path.count(myPath) == 0: sys.path.insert(0, myPat

Re: [Zope] External Method importing modules

2007-02-13 Thread Andreas Jung
--On 13. Februar 2007 13:10:17 + Alan <[EMAIL PROTECTED]> wrote: Thanks Andreas, I am trying with: if sys.path.count(myPath) == 0: sys.path.insert(0, myPath) What's the sense of this code? sys.path is usually *never* empty. You should really look at the Python docs and learn where Pytho

Re: [Zope] External Method importing modules

2007-02-13 Thread Alan
Thanks Andreas, I am trying with: if sys.path.count(myPath) == 0: sys.path.insert(0, myPath) where myPath should be '[Zope installation folder]/instance/import'. So my question now is: is there a variable inside Zope which can returns the 'import' path? Many thanks in advance. Cheers, Alan On

Re: [Zope] External Method importing modules

2007-02-13 Thread Andreas Jung
--On 13. Februar 2007 12:53:25 + Alan <[EMAIL PROTECTED]> wrote: Dear List, I have an external method and now I developed I new module in a separated file and then I am trying to make my external method to import it but I am failing here. Where should place my module file in order to be f

[Zope] External Method importing modules

2007-02-13 Thread Alan
Dear List, I have an external method and now I developed I new module in a separated file and then I am trying to make my external method to import it but I am failing here. Where should place my module file in order to be found by my external method? I tried to place it in the same folder of my

Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski
> i did it, but it don´t work, Because this code has no sense this way. You're just storing and retrieving data from session. What do you suppose this will do... Try something like: def extractCredentials(self, request): creds = {} session = self.REQUEST.SESSION creds = session.

[Zope] strange image error

2007-02-13 Thread Oliver Petznick
aloha zopers. i have a zope2.9 instance installed on a freebsd box - zope is installed out of the ports - python2.4 also. if i request a image bigger than about 100kb from the server it stops loading after some bytes and fires this error (it makes no difference if i use firefox2 or wget..

Re: [Zope] session

2007-02-13 Thread javi lopez
i did it, but it don´t work, def extractCredentials(self, request): creds = {} login = request.get('__ac_name', '') if login: # Look in the request for the names coming from the login form login = request.get('__ac_name', '') password = request.get(

Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski
> In session object, but i don´t know how to do it. > Can you help me please Please stay on list. Something like: session = self.REQUEST.SESSION session.set('_key', credentials) to retrieve data: creds = session.get('_key', None) So after proper authentication you may store object with us

[Zope] Zope 3 Boot Camp early bird registration deadline near

2007-02-13 Thread Chris Calloway
The early bird registration deadline for Camp 5 and the BBQ Sprint is Wednesday, February 14: http://trizpug.org/boot-camp/camp5/ You can save $50 by registering early. Registration ends Friday March 2. -- Sincerely, Chris Calloway http://www.seacoos.org office: 332 Chapman Hall phone: (919

Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski
> Sorry my english, I am spanish boy > When i put a user and password in login form, my user become Member, > but when my user want to go somewhere in portal, user session > dissapear and I go like Anonymous user. > Can i fixed that?? Maybe store credentials in session object or in cookies? -

Re: [Zope] session

2007-02-13 Thread javi lopez
2007/2/13, Maciej Wisniowski <[EMAIL PROTECTED]>: > i did a plugin for authenticated and extractCredentials, but it don´t > save session so it is how if user isn´t validate. > Can i save session for user authenticated? What do you mean by 'save session'? -- Maciej Wisniowski Sorry my english

Re: [Zope] cpu load 99 percent a lot in plone evinironment

2007-02-13 Thread Philip Kilner
Hi Robert (Jamie?), Robert (Jamie) Munro wrote: > I've been having similar speed problems with a page that loops through a > lot of SQL records. From what I can tell from the profiler, it is the > security machinery that is at fault. > I'm doing the same sort of stuff, and routinely have the sam

Re: [Zope] session

2007-02-13 Thread Maciej Wisniowski
> i did a plugin for authenticated and extractCredentials, but it don´t > save session so it is how if user isn´t validate. > Can i save session for user authenticated? What do you mean by 'save session'? -- Maciej Wisniowski ___ Zope maillist - Zop

Re: [Zope] External Method unable to run Java jar executable using os.system()

2007-02-13 Thread Andreas Jung
--On 12. Februar 2007 07:34:09 -0800 Ridzwan Aminuddin <[EMAIL PROTECTED]> wrote: java -jar /var/lib/zope2.8/instance/plone-site/Extensions/test.jar it works perfectly But using the external method given above just gives me a blank output. I've also tried popen2: from pop

[Zope] session

2007-02-13 Thread javi lopez
i did a plugin for authenticated and extractCredentials, but it don´t save session so it is how if user isn´t validate. Can i save session for user authenticated? Thanks for your help!!! ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/li

Re: [Zope] Migrating the OpenFlow project from Zope 2.7.x to 2.9.x (and 2.10.x)

2007-02-13 Thread Dieter Maurer
Marco Bizzarri wrote at 2007-2-10 21:33 +0100: > ... >cb = self.zope.manage_copyObjects([self.of.id]) > ... >self.zope.manage_pasteObjects(cb) >new_of = getattr(self.zope, 'copy_of_'+self.of.id) >self.assertEquals(len(new_of.Catalog()),cataloged_items) > > >Just for

Re: [Zope] cpu load 99 percent a lot in plone evinironment

2007-02-13 Thread Robert (Jamie) Munro
Jens Vagelpohl wrote: > > On 9 Feb 2007, at 09:29, Marko Kruijer wrote: >>> I do notice that my suspected page is slow, but that's a page >>> template, and there is not very much out of the ordinary going on >>> there. Just a loop in tal over a sql result set. > > "Just a loop in tal over a sql r

[Zope] External Method unable to run Java jar executable using os.system()

2007-02-13 Thread Ridzwan Aminuddin
Hi, I'm trying to run an external method that has a line that runs an os.system command to execute a Java .jar executable that simply outputs a text file as well as prints out a string. I've saved the python script as well as the Java .jar executable in my Extensions folder: /var/lib/zope2.8/

[Zope] user attributes

2007-02-13 Thread Alan
Dears, I have in a external method user = REQUEST.AUTHENTICATED_USER And so I can get user.getUserName(), user.getAllGroupNames() but I cannot find how to get user's full name and user's e-mail. Any idea? Many thanks in advance. Cheers, Alan -- Alan Wilter S. da Silva, D.Sc. - CCPN Research