[Zope] Re: dictionaries in python *methods* :-o

2001-01-21 Thread Lee
Okay, I figured it out. - Silly Lee ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zop

[Zope] dictionaries in python *methods* :-o

2001-01-21 Thread Lee
Thanks, Steve. This'll do nicely ;-) BUT... For some strange reason the following doesn't work in my Python *method*: dict = {} dict["Lee"] = 1 Error: Error Type: Python Method Error Error Value: Forbidden operation STORE_SUBSCR at line 3! <<-- ? Which seems very strange

Re: [Zope] Source to www.zope.org

2001-01-21 Thread Gerald Gutierrez
>At the bottom of the page there's a link called "View Source" which will >give you the original DTML. You can tack 'view_source' onto the end of any >www.zope.org URL to see how it was built. Hi Tim. Yes, I've looked at those sources, but unfortunately, they don't provide some of the backend

Re: [Zope] [python] creating variable names by adding 2 strings?

2001-01-21 Thread Steve Spicklemire
Hi Lee, You could use a dictionary for this: vars = {} while (p!=0): vars['p'+`p`] = string.replace(component[control], ",", "") p=p-1 control=control+1 then 'vars' will contain keys (e.g., 'p1', 'p2' etc.. ) and corresponding values. If that's totally not what yo

Re: [Zope] Adding to an XMLDocument through web forms

2001-01-21 Thread J. Cameron Cooper
> I`m looking for a way to give a user the ability to add new data to an > XMLDocument through web forms, does anyone have experience of this or would > be able to point me in the direction of an example or howto? I tried to do this before, and it never worked, so I'm probably not of all that muc

Re: [Zope] ZOPE and PHP - possible or not ?

2001-01-21 Thread J. Atwood
A lot came up with you just put 'PHP' in the Zope.org search box. Here are the best. http://www.zope.org/Members/Mamey/PHP http://www.zope.org/Members/Ioan/PHPObject J At 7:18 PM +0100 1/21/01, Greg Nowak wrote: >Hi! > >How do I combine the PHP code with ZOPE ? > >How to tell Apache to pars

Re: [Zope] Source to www.zope.org

2001-01-21 Thread J. Atwood
Also check out the About Zope.org link on the home page. http://www.zope.org/About There is a lot of good stuff there! J At 4:39 PM -0800 1/21/01, Gerald Gutierrez wrote: >Is the source code to www.zope.org available somewhere? > >It would certainly be an interesting example of how to build a

[Zope] [python] creating variable names by adding 2 strings?

2001-01-21 Thread Lee
Hi there, I'm creating variables in python but I am having trouble creating them when they're *named* using other variables. Here's an example; while (p!=0): p+`p`= string.replace(component[control], ",", "") # e.g. I want 'p1 = string.replace.blah...' p=p-1 cont

Re: [Zope] Source to www.zope.org

2001-01-21 Thread Timothy Wilson
On Sun, 21 Jan 2001, Gerald Gutierrez wrote: > Is the source code to www.zope.org available somewhere? At the bottom of the page there's a link called "View Source" which will give you the original DTML. You can tack 'view_source' onto the end of any www.zope.org URL to see how it was built. Yo

[Zope] Login Form / User Registration Code Snippets

2001-01-21 Thread Gerald Gutierrez
I remember that someone, somewhere, has a document with code snippets to do authentication and registration of users through forms, much like how www.zope.org does it. Does anyone know where this is? Thanks ___ Zope maillist - [EMAIL PROTECTED] h

[Zope] Source to www.zope.org

2001-01-21 Thread Gerald Gutierrez
Is the source code to www.zope.org available somewhere? It would certainly be an interesting example of how to build a large web site with Zope. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts

[Zope] Re: patch for python configure for freeBSD and Zope

2001-01-21 Thread Chris Watson
> No reason except that I have an install script for python, zope, and modules > (including configuration) for both that I "know" form a stable environment on > our production servers, whether linux, or freeBSD. I should try the ports > distribution and run my unit tests to perhaps build a more

[Zope] LoginManager disrupts access to protected object above it

2001-01-21 Thread Itai Tavor
Hi, This problem started with failure to access Control_Panel, which I thought was due to a SiteAccess problem... but I now tracked it to a problem with an instance of LoginManager. I have the following setup: Zope 2.3.0b2 ZPatterns 0.4.3b2 LoginManager 0.8.8b1 Zope/ test1 (PythonScript

[Zope] Re: patch for python configure for freeBSD and Zope

2001-01-21 Thread matt
On Mon, 22 Jan 2001, Chris Watson wrote: > > Sorry, to be more explicit : > > I built python 1.5.2 and Zope 2.2.2 from source, although the most recent > > stable release of Zope also gave the same error. > > > > I did not use the ports distribution of python or zope, so I don't know if > > the s

[Zope] Re: patch for python configure for freeBSD and Zope

2001-01-21 Thread Chris Watson
> Sorry, to be more explicit : > I built python 1.5.2 and Zope 2.2.2 from source, although the most recent > stable release of Zope also gave the same error. > > I did not use the ports distribution of python or zope, so I don't know if > the same default configure script is used by them too. >

[Zope] Re: patch for python configure for freeBSD and Zope

2001-01-21 Thread matt
On Mon, 22 Jan 2001, Chris Watson wrote: > > Hi, I'm using freeBSD 4.2-RELEASE and just tried to install python-1.5.2 and > > Zope. If you are trying to do the same and tun into the following error when > > trying to start zope, then apply this patch to the configure script of python > > and reb

[Zope] Re: patch for python configure for freeBSD and Zope

2001-01-21 Thread Chris Watson
> Hi, I'm using freeBSD 4.2-RELEASE and just tried to install python-1.5.2 and > Zope. If you are trying to do the same and tun into the following error when > trying to start zope, then apply this patch to the configure script of python > and rebuild it. > > ImportError: ./ExtensionClass.so: U

[Zope] ZSQL Methods in ZClasses...

2001-01-21 Thread Curtis Maloney
Green things, Am I missing something, or should I just simply not be using ZSQL methods in my ZClass? If I try to add one, I get an error about there not being a DB connection object (which makes sense) and won't let me add the object. I was planning on making the constructor find all availa

[Zope] Object DB versus Relational DB

2001-01-21 Thread Tom Deprez
Hi, Can somebody provide me informational links of documents which present the benefits and non-benefits of both DB? eg. When to use one and when not to use one? Thanks, Tom. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listi

[Zope] patch for python configure for freeBSD and Zope

2001-01-21 Thread matt
Hi, I'm using freeBSD 4.2-RELEASE and just tried to install python-1.5.2 and Zope. If you are trying to do the same and tun into the following error when trying to start zope, then apply this patch to the configure script of python and rebuild it. ImportError: ./ExtensionClass.so: Undefined sym

[Zope] TCPWatch... and closing sockets..

2001-01-21 Thread Steve Spicklemire
I'm going to try to make a long story short... and the story isn't even over... but I'm getting close. One of our clients is a 'multimedia' company and we're working with a group there that consists mostly of artists and designers who use tools like photoshop and macromedia director. They came t

Re: [Zope] Re: Index out of range

2001-01-21 Thread Tim Cook
Tim Cook wrote: > > Tim Cook wrote: > > > > Error Type: IndexError > > Error Value: list index out of range > > Well, DUH me. I forgot the last two lines of the text file (it's a dump from a database sent to me from someone else). One only had the number of rows and the other an EOF. Sorry to w

[Zope] Bug "Export Product and inheritance" (2). Any more description about XML export format?

2001-01-21 Thread Thierry Nabeth
Hello, I am still struggling to find a way to solve the bug (even manualy) relate to exporting a package in which a class inherits from a class of another package. Do you have any more details about the Import XML format ? I want to see if I can edit manually this file in order to solve the fact

Re: [Zope] RE: Workflow and document management system in Zope

2001-01-21 Thread Nicolas Pettiaux
Dear Mr Krosing, Thank you VERY much for the information. This application looks really neat, this is really going in the direction I want, and has indeed a lot of the features I am looking for. This IS the application I want to start with. My estonian is really poor (not to say, I don't und

[Zope] ZOPE and PHP - possible or not ?

2001-01-21 Thread Greg Nowak
Hi! How do I combine the PHP code with ZOPE ? How to tell Apache to parse the PHP code ? Where do I find info ? Best regards, Greg -- BEZPLATNE konto e-mail o adresie [EMAIL PROTECTED] i NIELIMITOWANEJ pojemnosci Tylko w POLAND.COM ! www.poland.com

[Zope] Re: Index out of range

2001-01-21 Thread Tim Cook
Tim Cook wrote: > > Error Type: IndexError > Error Value: list index out of range > OOPS! forgot the control panel info: Zope version: Zope 2.2.5b1 (binary release, python 1.5.2, linux2-x86) Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] System Platform: linux2 Process ID:

[Zope] Index out of range

2001-01-21 Thread Tim Cook
Error Type: IndexError Error Value: list index out of range I am importing a text file via an external method. I did my testing with a file that contained 18 records. All went fine. Stepped up the testing to a file with 550 records. The real thing will have over 30,000. Now it doesn't work. :-)

Re: [Zope] RE: Workflow and document management system in Zope

2001-01-21 Thread Hannu Krosing
Nicolas Pettiaux wrote: > > I am looking for a workflow (WF) linked to a electronic document management > (EDM) system and a groupware email based (I have just happened to come > accross aethera from the Kompany) that would be free software and preferably > in Zope + Python. The WF+DEM system I a

Re: [Zope] MySQL connection string.

2001-01-21 Thread Joachim Werner
Indra Gunawan wrote: > Hello, > could anyone tell me how to make connection string to MySQL in Linux? > I use Zope 2.3 and I've tried the > > database@[host] username password This should work. Your problem is probably somewhere else. Are you sure that the database adapter, database etc. are

Re: [Zope] SQL query result set - what data structure & how to access [(elements)]?

2001-01-21 Thread Andrew Kenneth Milton
+---[ Lee ]-- | Hi, | | I'm using a python method to query my database as follows, where I need | to use the result set to generate some HTML. I'm interested in result[0] | and result[1] as listed below; | | * return result[0] gives me: | [{'name': 'PRACTICALS', 'type': '