- 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
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
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
- 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
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
- 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
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
- 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
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'
- 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
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.
-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
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
-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
+---[ 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
--
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
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
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
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)
> 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
- 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
--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
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
--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
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
> 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.
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..
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(
> 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
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
> 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?
-
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
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
> 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
--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
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
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
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
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/
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
40 matches
Mail list logo