[Zope] question about manipulating zcatalog query results

2005-03-31 Thread Ira Sher
Hello all, I've moved a zope 2.5.1 (python 2.1.3) installation to two newer locations (zope 2.7.4/python 2.3.4 and zope 2.7.5/python 2.3.5) and scripts I have that iterate over zcatalog results using 'for' loops now fail with global name '_getiter_' is not defined. I'm also unable to take the

[Zope] Re: next part of tal:atrributes problem

2005-03-31 Thread prabuddha ray
for lennart n anrdeas, sir, i had built this page in asp earlier n now need to create a zpt ver. d javascript function used for submit is below: function sub_click(){ document.nlogin.login.value='y' // 'login' is flag for valid login n not bein used in zpt till now.

[Zope] Adding ZPyGreSQLDA Database Adaptor in Windows

2005-03-31 Thread Reddy, Niranjan Kumar (STSD)
Hi , I have a problem in adding the PostgreSQL Databse adaptor in windows, I have added the ZPyGreSQLDA folder, in the Zope-2.7 / import folder tried importing it, it says permission denied. I have directly added the ZPyGreSQLDA folder in Zope-2.7 / lib / python / Products folder,, the

[Zope] Re: next part of tal:atrributes problem

2005-03-31 Thread prabuddha ray
for lennart n anrdeas, sir, i had built this page in asp earlier n now need to create a zpt ver. d javascript function used for submit is below: function sub_click(){ document.nlogin.login.value='y' // 'login' is flag for valid login n not bein used in zpt till now.

[Zope] Newbie Zope Howto

2005-03-31 Thread Enrique Arizón
I'm trying to do a micro-Zope that basically store documents (PDFs scanned files) with some custom-made attributes (¿Who stores the document?, ¿where is the original -physical paper- stored?, ¿who is in charge of maintenance?, ¿token words?, ...) so that final users are able to search for stored

Re: [Zope] Newbie Zope Howto

2005-03-31 Thread bruno modulix
Enrique Arizón wrote: I'm trying to do a micro-Zope that basically store documents (PDFs scanned files) with some custom-made attributes (¿Who stores the document?, ¿where is the original -physical paper- stored?, ¿who is in charge of maintenance?, ¿token words?, ...) so that final users are able

[Zope] Re: thanks for tal:atrributes problem

2005-03-31 Thread prabuddha ray
wats wrong with the given puthon script request = container.REQUEST RESP = request.RESPONSE passwd = context.request.password1 user = context.request.username, if(container.chkpwd(uname=user,pwd=passwd)): RESP.redirect(/store_nic/consumables/test) // syntax errror. else:

[Zope] script python error

2005-03-31 Thread prabuddha ray
wats wrong with the given puthon script request = container.REQUEST RESP = request.RESPONSE passwd = context.request.password1 user = context.request.username, if(container.chkpwd(uname=user,pwd=passwd)): RESP.redirect(/store_nic/consumables/test) // syntax errror. else:

[Zope] HTTPSConnection Python 2.3.4

2005-03-31 Thread Joshua Jacobson
On the same machine, my script works in python 2.3.4 outside of zope, but it doesn't work in python 2.3.4 within zope as an external script. There I get"sslerror: The read operation has timed out." Here's the script: import httplib, urllibAction = ''CreateFunction = 'Create using

Re: [Zope] role, user defined roles, and inclusion

2005-03-31 Thread Chris Withers
Dieter Maurer wrote: A user will have the Anonymous role iff they have not supplied any authentication credentials. Any user has the Anonymous role whether or not it is authenticated. Really? Then how come the following script: from AccessControl import getSecurityManager user =

Re: [Zope] Re: login page problem

2005-03-31 Thread Chris Withers
prabuddha ray wrote: now my problem how n where do i check d pwd n redirect to the next zpt or the previous one if its wrong. i've a zsql method giving me the pwd for the user param passed. i wanted to kno if i can call this method on d onsubmit event? kindly gimme solns u've in mind. Use

Re: [Zope] User changing their own password via External Method with Cookie Crumbler

2005-03-31 Thread Chris Withers
Dave Cinege wrote: From what I was able to dissect from CMF changing the password is down to a hack. : P userFolderEditUser() doesn't work. You must instead change the '__' attribute of a user object. Why am I not suprised? ;-) : O My code below works, except that credentialsChanged() ends

Re: [Zope] WebDAV BUGS and access to /tmp directory

2005-03-31 Thread Chris Withers
Pavel Zaitsev wrote: I am back trying to figure out why my zope crashes on open('/tmp/tmp4fd4foo') kind of opens, which seem to originated from webdav code. I doubt it's anything specific to the webdav code that's causing a problem. Maybe a large file upload, try doing the same by addign a file

Re: [Zope] Re: login page problem

2005-03-31 Thread Chris Withers
Somhorst JJT wrote: You could try to look at the tutorial on devshed.com. They created a login system using text files. Its not exactly as you want but it gives you an idea about how to handle things :) Talk about re-inventing wheels. Zope has an amazingly powerful and flexible security

Re: [Zope] question about manipulating zcatalog query results

2005-03-31 Thread Chris Withers
Ira Sher wrote: the time (save to wait for 7.4 to come out of beta). Is anyone else experiencing this? Is there a workaround? What am I missing? Can you paste a real traceback or two? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope] Adding ZPyGreSQLDA Database Adaptor in Windows

2005-03-31 Thread Chris Withers
Reddy, Niranjan Kumar (STSD) wrote: I have directly added the ZPyGreSQLDA folder in Zope-2.7 / lib / python / Products folder,, the Zope crashes !!! What traceback is displayed when this happens? cheers, Chris FWIW, I use mxODBC to connect to postgres from WIndows servers... -- Simplistix -

Re: [Zope] HTTPSConnection Python 2.3.4

2005-03-31 Thread Chris Withers
Step back a bit: what are you trying to do and wha tare you trying to do it? ;-) Chris Joshua Jacobson wrote: On the same machine, my script works in python 2.3.4 outside of zope, but it doesn't work in python 2.3.4 within zope as an external script. There I get sslerror: The read operation has

RE: [Zope] HTTPSConnection Python 2.3.4

2005-03-31 Thread Joshua Jacobson
Chris, As part of my registration process on my Plone site, I need to make a make a URL connection to a script on a remote site which returns some information. Then I save that information in my database and email it to the user. Thanks, Joshua -Original Message- From: Chris Withers

Re: [Zope] Re: login page problem

2005-03-31 Thread Cliff Ford
Use SimpleUserFolder and CookieCrumbler, and cut out the cute abbreviations like n and d while you're at it. I second that! I have started hitting the delete button rather than engage in the mental translation. Cliff Chris Withers wrote: prabuddha ray wrote: now my problem how n where do i

Re: [Zope] Re: login page problem

2005-03-31 Thread Chris Withers
Cliff Ford wrote: Use SimpleUserFolder and CookieCrumbler, and cut out the cute abbreviations like n and d while you're at it. I second that! I have started hitting the delete button rather than engage in the mental translation. I gave up and added ray to my spam can procmail rule. Oh well,

Re: [Zope] HTTPSConnection Python 2.3.4

2005-03-31 Thread Paul Winkler
On Thu, Mar 31, 2005 at 01:12:41PM +0200, Joshua Jacobson wrote: On the same machine, my script works in python 2.3.4 outside of zope, but it doesn't work in python 2.3.4 within zope as an external script. There I get sslerror: The read operation has timed out. I have a somewhat similar issue;

[Zope] Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-03-31 Thread Andy Yates
Good day everyone! I added a doc type string to one of my Zope pages because it needed to pass an HTML 4.01 Strict validator. When I did this FireFox seems to ignore the style sheet. My style sheet is dynamic so I used a page template and tal. If the Content Type on the style sheet is set to

Re: [Zope] Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-03-31 Thread Paul Winkler
On Thu, Mar 31, 2005 at 11:38:59AM -0600, Andy Yates wrote: Am I going to have to write a python script to call the style sheet page template and change the content type or is there a better way to handle this? Page Templates are awkward to use for non-XML output. I never tried to use them for

Re: [Zope] question about manipulating zcatalog query results

2005-03-31 Thread Ira Sher
Chris, a traceback for a script (testy in this case, called from testyer_html, as I've broken out the problem area and have been trying to work around it) using a for loop on a zcatalog result looks like: * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line

RE: [Zope] Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-03-31 Thread Andy Yates
Thanks! I've never used dtml for style sheets. I've always used page templates and never had a problem 'til now. Also, I don't see a way to set the content type on a dtml doc or method. I assume it would be text/html and then I back in the same boat. To restate my problem, FireFox in HTML

[Zope] Folder Listing as a Plone Portlet Mini-HOWTO (draft)

2005-03-31 Thread Matthew X. Economou
http://web.irtnog.org/Members/xenophon/plone/portlet-folder-contents This folder listing portlet displays the title of the folder, its description, and a list of each item in the folder. Mousing over each link pops up its description in browsers that understand the title anchor (A) tag

[Zope] ClockServer 0.1 released

2005-03-31 Thread Chris McDonough
Hi folks, I was creeped out by Zope scheduling products that started a separate thread to call methods at scheduled intervals and I got tired of setting up cron+wget to call Zope methods via HTTP, thus: http://plope.com/software/ClockServer It works by posing as a medusa server, and injects

[Zope] Re: next part of tal:atrributes problem

2005-03-31 Thread Phillip Hutchings
below is python script c_nlogged: request = container.REQUEST RESP = request.RESPONSE passwd = request.password1 user = request.username, See the comma on the end of the user= line? That's your syntax error. When you get a syntax error always check a couple of lines further up the script.

[Zope] Re: Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-03-31 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andy Yates wrote: Thanks! I've never used dtml for style sheets. I've always used page templates and never had a problem 'til now. Also, I don't see a way to set the content type on a dtml doc or method. You can just add the line,

Re: [Zope] WebDAV BUGS and access to /tmp directory

2005-03-31 Thread Florent Guillaume
Pavel Zaitsev [EMAIL PROTECTED] wrote: I am back trying to figure out why my zope crashes on Please define crashes. Florent open('/tmp/tmp4fd4foo') kind of opens, which seem to originated from webdav code. Question to someone who is expert in webdav/*.py code... I just would like to know

Re: [Zope] User changing their own password via External Method with Cookie Crumbler

2005-03-31 Thread Florent Guillaume
Dave Cinege [EMAIL PROTECTED] wrote: self.login.credentialsChanged(reqd['username'],reqd['username'],reqd['password']) Both before and after self.acl_users.userFolderEditUser(reqd['username'],reqd['password'],'','') That should be self.acl_users.userFolderEditUser(username, password,

Re: [Zope] WebDAV BUGS and access to /tmp directory

2005-03-31 Thread Pavel Zaitsev
Florent Guillaume wrote: Pavel Zaitsev [EMAIL PROTECTED] wrote: I am back trying to figure out why my zope crashes on Please define crashes. Well zope is trying to create file in /tmp , process gets 'state' - 'U' which is not defined in the manual, maybe Unresponsive, like 'D' sign?

[Zope-dev] Re: Clarification re: Zope X3.1, 2.8 - svn usage

2005-03-31 Thread Wolfgang Langner
Hello, Tres Seaver wrote: When you use 'svn:externals', the referenced package itself is *not* part of the containing checkout; it is managed separately by the svn client (sort of like ESI and page fragments). Yes this is true. But the differences between svn:externals and a copy are not so

Re: [Zope-dev] Adding Plone Content

2005-03-31 Thread Andreas Jung
--On Donnerstag, 31. März 2005 15:28 Uhr +0530 JV Singh [EMAIL PROTECTED] wrote: Hello. I need some help with this. I installed zope using 'apt-get install zope2.7' and then 'apt-get install plone'... But in the zope 'Add' list, I can't see any of the additionally installed components,

Re: [Zope-dev] Test failures with five-integration branch merged to head...

2005-03-31 Thread Martijn Faassen
Brian Lloyd wrote: I did a merge from the five-integration branch to the head in a local sandbox, and got the following test failures - anyone know anything about them? Odd, I don't get any failures, and Stefan Holek cannot report them either. Did these get resolved since then? It looks like

Re: [Zope-dev] Disabling FTP by default

2005-03-31 Thread Chris Withers
Florent Guillaume wrote: I'd like to disable FTP by default, by commenting it out in skel/etc/zope.conf. The reason is that it's better to open as few ports as possible by default. Opinions ? +1, but only for 2.8 Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Jim Fulton
In this case, the answer is clear to me. :) We should fix the offending Z3 code to match the interface. Similarly, we should fix the uses of get_transaction. Jim Tim Peters wrote: I'm merging ZODB 3.4 into Zope on a branch. As Tres noted earlier in a checkin comment, a test failure results,

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Jim Fulton
Martijn Faassen wrote: Tim Peters wrote: [snip] get_transaction() is more troublesome than _just_ that, alas: there are about 160 instances of it across the stitched-in lib/python/zope, and Products/Five, code. This causes lots of new deprecation warnings when running the tests. These are easy

[Zope-dev] Re: brain.getObject and traversal

2005-03-31 Thread Max M
Chris Withers wrote: Well, in 2.8, new behaviour is expected, right? I really passionately believe that we should not be returnining None in Zope 2.8, and since 2.8 hasn't quite hit beta yet I'm very keen to see it fixed asap. Any objections? Most of my queries, where I need to wake up objects,

Re: [Zope-dev] brain.getObject and traversal

2005-03-31 Thread Roché Compaan
On Thu, 2005-03-31 at 13:02 +0100, Chris Withers wrote: Would anyone object if I wrote tests and changed the implementation to raise exceptions, including Unauthorized, instead of returning None? Unauthorized in getObject is out of the question, that would be new behaviour. Well,

Re: [Zope-dev] brain.getObject and traversal

2005-03-31 Thread Florent Guillaume
Chris Withers wrote: You're mistaken. The old code did: def getObject(self, REQUEST=None): Try to return the object for this record try: obj = self.aq_parent.unrestrictedTraverse(self.getPath()) if not obj: if REQUEST is None:

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Tim Peters
[Tim Peters] ... get_transaction() is more troublesome than _just_ that, alas: there are about 160 instances of it across the stitched-in lib/python/zope, and Products/Five, code. This causes lots of new deprecation warnings when running the tests. These are easy to repair with 1-2 hours

Re: [Zope-dev] Test failures with five-integration branch merged to head...

2005-03-31 Thread Tim Peters
[Brian Lloyd] I did a merge from the five-integration branch to the head in a local sandbox, and got the following test failures - anyone know anything about them? [Martijn Faassen] Odd, I don't get any failures, and Stefan Holek cannot report them either. Did these get resolved since then?

Re: [Zope-dev] zope /tmp file usage

2005-03-31 Thread Florent Guillaume
Pavel Zaitsev [EMAIL PROTECTED] wrote: I am wondering what code in Zope 2.7.5-final potentially may use /tmp directory for temprorary files. Lots. There are many uses of the tempfile python module, which uses the TMPDIR, TEMP or TMP environment variables to decide where to stick its temporary

RE: [Zope-dev] Test failures with five-integration branch merged to head...

2005-03-31 Thread Brian Lloyd
[Martijn Faassen] Odd, I don't get any failures, and Stefan Holek cannot report them either. Did these get resolved since then? It looks like the merge got checked in, right? The merge was checked in. I'm doing the ZODB 3.4 integration on a new branch. We suspect Brian's failures

Re: [Zope-dev] zope /tmp file usage

2005-03-31 Thread Sidnei da Silva
On Thu, Mar 31, 2005 at 01:52:11AM -0500, Pavel Zaitsev wrote: | snip if someone knows of what circuimstances zope would use /tmp | directory to create a file... Anytime the request coming in is bigger than the config variable 'large-file-threshold' (see INSTANCE_HOME/etc/zope.conf), the request

Fwd: [Zope-dev] zope /tmp file usage

2005-03-31 Thread Patrick DECAT
I did not understand why people why replying the same answer as I did: that simple I did not reply to the mailing list ;) -- Forwarded message -- From: Patrick DECAT [EMAIL PROTECTED] Date: Thu, 31 Mar 2005 11:50:56 +0200 Subject: Re: [Zope-dev] zope /tmp file usage To: Pavel

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Tim Peters
[Tim Peters] ... Suggestion: I make a new copy of Zope3/tags/ZopeX3-3.0.0-Zope-2.8-pr1/src/zope stitch that into Zope trunk (change the lib/python svn:externals to point to the new copy), do all the get_transaction() edits there, and repair the IDataManager glitch there too. This

[Zope-dev] Re: Clarification re: Zope X3.1, 2.8 - svn usage

2005-03-31 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wolfgang Langner wrote: Hello, Tres Seaver wrote: When you use 'svn:externals', the referenced package itself is *not* part of the containing checkout; it is managed separately by the svn client (sort of like ESI and page fragments). Yes

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Martijn Faassen
Jim Fulton wrote: Martijn Faassen wrote: Tim Peters wrote: [snip] get_transaction() is more troublesome than _just_ that, alas: there are about 160 instances of it across the stitched-in lib/python/zope, and Products/Five, code. This causes lots of new deprecation warnings when running the

Re: [Zope-dev] Re: Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Martijn Faassen
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Fulton wrote: Martijn Faassen wrote: [snip] Right, lib/python/zope is actually Zope X3.0.0, and we didn't expect we'd need to *update* Zope X3.0 in order for it to work with Zope 2.8. The new ZODB version is having some

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Martijn Faassen
Tim Peters wrote: [Tim Peters] ... get_transaction() is more troublesome than _just_ that, alas: there are about 160 instances of it across the stitched-in lib/python/zope, and Products/Five, code. This causes lots of new deprecation warnings when running the tests. These are easy to repair

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Martijn Faassen
Tim Peters wrote: [Tim Peters] ... Suggestion: I make a new copy of Zope3/tags/ZopeX3-3.0.0-Zope-2.8-pr1/src/zope stitch that into Zope trunk (change the lib/python svn:externals to point to the new copy), do all the get_transaction() edits there, and repair the IDataManager glitch there too.

[Zope-dev] zope /tmp file usage

2005-03-31 Thread Patrick DECAT
I did not understand why people was replying the same answer as I did. That's simple: I did not reply to the mailing list ;) -- Forwarded message -- From: Patrick DECAT [EMAIL PROTECTED] Date: Thu, 31 Mar 2005 11:50:56 +0200 Subject: Re: [Zope-dev] zope /tmp file usage To: Pavel

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Tim Peters
[Martijn Faassen, on deprecation warnings] Thanks; I haven't seen those warnings yet as I don't think ZODB 3.4 quite got merged into Zope 2.8 trunk yet. Not even close yet. I'm doing the 3,4 integration work on Zope/branches/tim-merge-zodb34 and I'm not merging anything into the trunk

Re: [Zope-dev] Re: Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martijn Faassen wrote: Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Fulton wrote: Martijn Faassen wrote: [snip] Right, lib/python/zope is actually Zope X3.0.0, and we didn't expect we'd need to *update* Zope

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Tim Peters
Zope trunk is using ZODB 3.4 now. It's been switched to use svn:externals to stitch in the 9 ZODB directories. For now they're pointing at ZODB trunk. A release tag will be made later (this is _not_ ready for release yet; now I can start doing the work I wanted to start doing on Monday 0.5

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Sidnei da Silva
| At one point during the Zope/branches/tim-merge-zodb34 merge on my | local box, svn got itself terminally confused, starting to create | directories like lib/lib/python/ZODB (there are two lib/s in that -- | not a typo), and griping endlessly about locks and non-existent files. | No amount of

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Tim Peters
[Sidnei da Silva] Got one problem so far: svn: Failed to add directory 'lib/python/BTrees/tests': object of the same name already exists Everything else seems to have updated with no problems to that point. Ugh -- I'm afraid that's the very first of the 9 ZODB directories it tried to

Re: [Zope-dev] Clarification re: Zope X3.1, 2.8

2005-03-31 Thread Sidnei da Silva
On Thu, Mar 31, 2005 at 03:33:11PM -0500, Tim Peters wrote: | Ugh -- I'm afraid that's the very first of the 9 ZODB directories it | tried to update, and svn just isn't smart enough to delete the | existing directories before trying to fetch the new ones. Indeed it was. I think its a Good Thing.

[Zope-dev] editing zope files

2005-03-31 Thread Pavel Zaitsev
I try to edit zope file in zope istalled directory, HTTPServer in particular, i want to debug some things, but I get syntax errors on any code i try insert like a=1 , or 'print'. like: # /opt/web/bin/runzope

FIXED: Re: [Zope-dev] editing zope files

2005-03-31 Thread Pavel Zaitsev
Was a spacing issue thanks to #zope on freenode, pavel ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

[Zope-dev] [Zope2.8a2] ...to be released by tomorrow....

2005-03-31 Thread Andreas Jung
Hi, I am planning to make the release tomorrow (Saturday afternoon (German time :-)). So please make your final fixes very soon or cry out loud STOP if there are any show stoppers. Andreas pgp17zL6Dn1uH.pgp Description: PGP signature ___ Zope-Dev

RE: [Zope-dev] [Zope2.8a2] ...to be released by tomorrow....

2005-03-31 Thread Brian Lloyd
Hi Andreas - please don't cut the release until we get the OK from Tim Peters - he's still working on merging recent ZODB changes, I believe. Brian Lloyd[EMAIL PROTECTED] V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com -Original Message-

RE: [Zope-dev] [Zope2.8a2] ...to be released by tomorrow....

2005-03-31 Thread Andreas Jung
Ok, I am waiting for go ahead sign (I haven't followed the recent discussion because I am currently on a business trip) -aj --On Freitag, 1. April 2005 0:13 Uhr -0500 Brian Lloyd [EMAIL PROTECTED] wrote: Hi Andreas - please don't cut the release until we get the OK from Tim Peters - he's still