Re: [Zope] new user, teething problems

2006-08-03 Thread Gabriel Genellina
At Thursday 3/8/2006 20:14, John P. Looney wrote: Hey, I've made my first page, though it's not working as I'd like. This is the contents of the page: testing Going ! asdasda Page Templates are easier to use instead of DTML. File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/doc

Re: [Zope] adding product-based objects programmatically

2006-08-03 Thread Gabriel Genellina
At Thursday 3/8/2006 15:51, Kees de Brabander wrote: > >dispatcher.Destination()._setObject(id, nQ) I remembered and checked: it was taken from the Zope Developer's Guide 2.4 edition on zope.org!! I would delete that from zope.org site. It's far too old and outdated, and confuses people.

Re: [Zope] new user, teething problems

2006-08-03 Thread David H
John P. Looney wrote: Hey, I've made my first page, though it's not working as I'd like. This is the contents of the page: testing Going ! asdasda But, the error logs show that it's not happy... Traceback (most recent call last): File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/

Re: [Zope] new user, teething problems

2006-08-03 Thread John P. Looney
 Hey, I've made my first page, though it's not working as I'd like. This is the contents of the page: testing Going ! asdasda  But, the error logs show that it's not happy... Traceback (most recent call last):  File "/tmp/Zope-3.2.1/build/lib.linux-i686-2.4/zope/publisher/publish.py", line 138, i

Re: [Zope] Filling Out a PDF

2006-08-03 Thread Chris McDonough
Hi, This product: http://www.reportlab.com/pagecatcher_index.html seems like what you want... it's written in Python. - C On Aug 3, 2006, at 3:52 PM, Muk Yan wrote: Dear Knowledgeable Zope Zealots, Thanks for pointing me in the right direction last time, I just didn't know that I should

[Zope] maximum recursion depth exceeded - SimpleUserFolder

2006-08-03 Thread Remy Pinsonnault
Hello   I have a SimpleUserFolder 0.9.0 inside a GRUF folder.   I am running on a Plone 2.1.3 instance.   If I change the SimpleUserFolder to the newest version (1.1.2), I get a maximum recursion depth exceeded error (see traceback).   What is wrong??   Site Error An error was encountered while pu

[Zope] WHM/LibProxy Problem

2006-08-03 Thread beno
I have FreeBSD 5.3 and just installed Apache 2.2.3. I just took over sysadmining this box. We work with Zope and VirtualHostMonster, so there's lots of RewriteRules and a proxy is necessary. The problem is configuring the proxy. The old Apache (1.3.3) had the following: LoadModule proxy_module

[Zope] Filling Out a PDF

2006-08-03 Thread Muk Yan
Dear Knowledgeable Zope Zealots,Thanks for pointing me in the right direction last time, I just didn't know that I should have searched for zsql instead of sql.I've racked my brain and searched the great vastness to no avail.  I have some PDF forms that I've converted to HTML in order for people to

Re: [Zope] adding product-based objects programmatically

2006-08-03 Thread Kees de Brabander
> >manage_addQuery in Query.py looks like: > >def manage_addQuery(dispatcher, id, title, REQUEST=None): > >"" > >nQ=Query(id,title) > >dispatcher.Destination()._setObject(id, nQ) > > Apparently, "dispatcher" lacks a "Destination" method. > > Why are you using it? > Usually "dispatch

Re: [Zope] adding product-based objects programmatically

2006-08-03 Thread Kees de Brabander
- Original Message - From: "Dieter Maurer" <[EMAIL PROTECTED]> To: "Kees de Brabander" <[EMAIL PROTECTED]> Cc: "Jens Vagelpohl" <[EMAIL PROTECTED]>; "[Zope] Mailing List" Sent: Thursday, August 03, 2006 7:04 PM Subject: Re: [Zope] adding product-based objects programmatically > Kees de

Re: [Zope] adding product-based objects programmatically

2006-08-03 Thread Dieter Maurer
Kees de Brabander wrote at 2006-8-3 16:25 +0200: >Huh? I included the relevant portions of my source code in my message: > >Module QuerySet.py: >from Query import manage_addQuery >class QuerySet(Folder): >def __init__(self, id, title): >self.id = id >self.title = title >

Re: [Zope] Get uploaded file size

2006-08-03 Thread Dieter Maurer
AnThu Nguyen wrote at 2006-8-2 10:13 -0700: > ... >I'm trying to get the size of a file uploaded via an HTML form before >it's written. "context.REQUEST.file" only accesses the file name, not >the content. How do I read the contents? Any help will be much appreciated. If "context.REQUEST.file" i

Re: [Zope] new user, teething problems

2006-08-03 Thread Lennart Regebro
The Python distros are generally quite OK and stable now, and useful even for production systems, even though I fully understand that people prefer to compile their own, if for no other reason to have one specific for Zope, so that no package version suddenly gets upgraded to something incompatibl

Re: [Zope] new user, teething problems

2006-08-03 Thread John P. Looney
On 8/3/06, Jens Vagelpohl <[EMAIL PROTECTED]> wrote: This has nothing to do with "1980s", just with sanity. Or do youthink it's OK to use some distribution-installed Python where youhave no idea how it has been built and which maybe upgraded withoutyour knowledge and cause breakage in your Zope set

[Zope] Re: new user, teething problems

2006-08-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John P. Looney wrote: > On 8/3/06, Jens Vagelpohl <[EMAIL PROTECTED]> > wrote: >> >> There are no supported RPMs. Those that are out there have been >> created by third parties and are really old and not supported. >> >> If you're running in a product

Re: [Zope] new user, teething problems

2006-08-03 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3 Aug 2006, at 11:33, John P. Looney wrote: On 8/3/06, Jens Vagelpohl <[EMAIL PROTECTED]> wrote: There are no supported RPMs. Those that are out there have been created by third parties and are really old and not supported. If you're running in

Re: [Zope] new user, teething problems

2006-08-03 Thread John P. Looney
On 8/3/06, Jens Vagelpohl <[EMAIL PROTECTED]> wrote: There are no supported RPMs. Those that are out there have beencreated by third parties and are really old and not supported.If you're running in a production environment and want to ensure yourZope setup is not affected by system updates it is r

Re: [Zope] new user, teething problems

2006-08-03 Thread Jens Vagelpohl
On 3 Aug 2006, at 10:46, John P. Looney wrote: Oh. There aren't any more recent RPMS then ? I really really hate installing stuff from source anymore, esp. when other admins on the same system have a tendancy to upgrade packages like python and everything else without checking does ever

Re: [Zope] new user, teething problems

2006-08-03 Thread John P. Looney
 Oh. There aren't any more recent RPMS then ? I really really hate installing stuff from source anymore, esp. when other admins on the same system have a tendancy to upgrade packages like python and everything else without checking does everything still run  For the record; it was both that zop

Re: [Zope] new user, teething problems

2006-08-03 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3 Aug 2006, at 10:25, John P. Looney wrote: Hey, after four years, I've finally found the time to go back & look at Zope again. Unfortunately, after installing the RPM (zope-2.7.2-0.1.2.el4.rf, I ran: For your own sanity, ditch that u

Re: [Zope] new user, teething problems

2006-08-03 Thread Chris McDonough
It's also possible that the error message is signifying that Zope is already started and you're trying to start it again. - C On Aug 3, 2006, at 10:32 AM, Jean Jordaan wrote: Hi John File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 232, in __init__ self._lock_file = LockFile

Re: [Zope] new user, teething problems

2006-08-03 Thread Jean Jordaan
Hi John > File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 232, in > __init__ > self._lock_file = LockFile(file_name + '.lock') [...] > IOError: [Errno 11] Resource temporarily unavailable > > Anyone know what's going on ? Is it trying to read a file called > '' ? No, it's failin

Re: [Zope] adding product-based objects programmatically

2006-08-03 Thread Kees de Brabander
Huh? I included the relevant portions of my source code in my message: Module QuerySet.py: from Query import manage_addQuery class QuerySet(Folder): def __init__(self, id, title): self.id = id self.title = title self.manage_addUserFolder() def manage_afterAdd(self,

[Zope] new user, teething problems

2006-08-03 Thread John P. Looney
 Hey, after four years, I've finally found the time to go back & look at Zope again. Unfortunately, after installing the RPM (zope-2.7.2-0.1.2.el4.rf, I ran:[EMAIL PROTECTED] tmp]# zopectl adduser the_power password Traceback (most recent call last):  File "", line 1, in ?  File "/usr/lib/zope/lib/

Re: [Zope] adding product-based objects programmatically

2006-08-03 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Your remark appeared (and presumably is) valid, although I do not understand why adding acl_user folders has no problems with that. So, I additionally defined manage_afterAdd. However I got the same error. Any more pointers? By the way, where a

Re: [Zope] adding product-based objects programmatically

2006-08-03 Thread Kees de Brabander
hi, - Original Message - From: "Jens Vagelpohl" <[EMAIL PROTECTED]> To: "[Zope] Mailing List" Sent: Wednesday, August 02, 2006 12:52 PM Subject: Re: [Zope] adding product-based objects programmatically > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > On 2 Aug 2006, at 06:37, Kees

Re: Re: [Zope] defunct process with os.spawn*

2006-08-03 Thread Alan
Guys, I must say that I really appreciate your attention, that's pretty cool to have such a nice people to give support to newbies like me. Based on what got here I found a solution that worked for me: pid_test,st=os.waitpid(jpid,os.WNOHANG) Now, let's go for the next trouble... Cheers, Alan

Re: [Zope] Programatically logging out of Zope

2006-08-03 Thread Stefan H. Holek
from AccessControl.SecurityManagement import noSecurityManager noSecurityManager() Stefan On 3. Aug 2006, at 13:58, Sinang, Danny wrote: Hello, Would anyone here know how to programmatically log out of Zope ? -- Anything that, in happening, causes something else to happen, causes something

Re: [Zope] Programatically logging out of Zope

2006-08-03 Thread Jean Jordaan
> Would anyone here know how to programmatically log out of Zope ? Redirect the user to a page that always raises Unauthenticated. See manage_zmi_logout. -- jean ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cro

[Zope] Programatically logging out of Zope

2006-08-03 Thread Sinang, Danny
Hello,   Would anyone here know how to programmatically log out of Zope ?   Regards, Danny     ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope

Re: [Zope] (no subject)

2006-08-03 Thread Marco Bizzarri
Please take a look at the Zope book, in the section about security where it speaks about "trusted" and "untrusted" code. Basically, you can access from a Python script (i.e. untrused code) only those modules which are explicity declared so in Zope. time module is most probably not in those modul

Re: [Zope] How can i improve performance of website under heavy load in Zope2.6.1

2006-08-03 Thread Stefan H. Holek
On 31. Jul 2006, at 09:13, Sudesh Soni wrote: I wonder why Zope is default set for handling 4 threads and 7 database connections. These are good values under normal circumstances. I tried inreasing threads to 20 and database connections to 30 by updating z2.py and DB.py, presuming that t

[Zope] (no subject)

2006-08-03 Thread barrett-zope
I'm new to Zope, though I've been writing Python for some time. I have a fresh installation to which I've added a simple Python script (code below) in the root directory. When I test the script through the ZMI or attempt to access it via the web, I get an error: Error Type: Unauthorized Er