[Zope] Stupid questions
Am i supposed to get "XML methods" and "Python methods" in the add product drop down? I'm baffled. Thanks =) PD: the subject says it all. Please don't flame me. I think we need a little bit more organization, some kind of comprehensive index instead of looking for documentation in several places. -- Manuel Amador (Rudd-O)
[Zope] Re: Upload just file headers?
Still haven't found an answer, after 4 hours searching the egroups archive. Just to clarify: I need to read the headers of the files BEFORE I upload the entire file, because the files may be very large and I need to be able to give a warning if the file does not meet certain criteria. Example: a jpeg file of 500x400 pixels, approx. 200 kb when the application, to be used in an application that needs much higher resolution in order to look good. I want to avoid wasting 50 seconds or so uploading this file just to find out that it's no good. If I could upload the first bit of the file (1k should be plenty), I could open it with PIL and check the size attribute. (I've verified this by doing head --bytes 500 foo.jpeg > test.jpeg and then opening test.jpeg in python - it works even though the file has been truncated.) I wrote: > > I'd like to make a form that looks like the typical file > upload form, but will upload ONLY the header of the chosen > file. > Anyone know how / if this can be done? -- .paul winkler.. slinkP arts: music, sound, illustration, design, etc. web page: http://www.slinkp.com A member of ARMS: http://www.reacharms.com ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] LoginManager - how does it work?
Thanks for the help! Still looking for that HOWTO.txt So, now I have a UserSource Installed into my LoginManager. It is called "pgcrypt" and is supposed to authenticate to a SQL database. The password stored in the DB is encryputed using the same scheme. Any ideas why it doesn't let me in? Is there any way to troubleshoot this? It seems like there should be a way to tell if it's going to work or not form the management interface. Here's what I added to UserSources.py: class PGCryptUserSource(BasicUserSource): """ A sql based encrypted user source """ meta_type="PG Crypt User Source" __plugin_kind__="User Source" def retrieveItem(self, name): self.getcustbyusername(username=name) def rolesForUser(self, user): name = user.getUserName() res = self.getcustbyusername(username=name) fields2index={} fieldnames=res._schema.items() for i in range(len(fieldnames)): fields2index[fieldnames[i][0]]=fieldnames[i][1] roles=res[0][fields2index['roles']] return roles def domainsForUser(self, user): name = user.getUserName() res = self.getcustbyusername(username=name) fields2index={} fieldnames=res._schema.items() for i in range(len(fieldnames)): fields2index[fieldnames[i][0]]=fieldnames[i][1] domains=res[0][fields2index['domains']] return domains def authenticateUser(self, user, password, request): name = user.getUserName() res = self.getcustbyusername(username=name) fields2index={} fieldnames=res._schema.items() for i in range(len(fieldnames)): fields2index[fieldnames[i][0]]=fieldnames[i][1] passwd=res[0][fields2index['password']] if crypt.crypt(password,'ab')==passwd: return 1 else: return 0 + context.registerPlugInClass( PGCryptUserSource, permission = 'Add PGCrypt UserSource', constructors = defaultConstructors(PGCryptUserSource,globals()), ) ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] locking help
Hi all, Thanks for all the help Ive installed PoPy-1.36 and ZPoPyDA-0.64 and it works like a bastard : Thanks all Mark On Wed, 11 Oct 2000, Philipp Auersperg wrote: > this Postgres adapter is not multithreaded, check out the ZPoPyDA from zope.org. > That is an alternative Postgres adapter that is multithreaded and does not lock up. > > phil > *** REPLY SEPARATOR *** > > On 11.10.2000 at 08:48 Mark Twiddy wrote: > > >Hi thanks for the reply > >The problem is whenever i do really big query everything stops and waits. > > > >im using > >ZPyGreSQLDA-0.3-rjr2 > >and > >py-PyGreSQL-2.4 > > > >thanks > >Mark > >On Tue, 10 Oct 2000, Mike Renfro wrote: > > > >> On Tue, Oct 10, 2000 at 04:58:46PM +0930, Mark Twiddy wrote: > >> > >> > Can someone please tell me what is going on. while querying a > >> > postgres database i am unable to access any crap from zope. I have > >> > tried creating a db connection in a enternal method and querying > >> > through that but it still locks and wont serve any requests. > >> > >> Don't know if this will help, but my Zope/Postgresql experience has > >> gone remarkably well. > >> > >> I have the following packages installed on an otherwise regular Debian > >> 2.2 machine: > >> > >> libpgsql2 7.0.2-6 Shared library libpq.so.2 for PostgreSQL > >> postgresql7.0.2-6 Object-relational SQL database, descended fr > >> postgresql-client 7.0.2-6 Front-end programs for PostgreSQL > >> postgresql-dev7.0.2-6 Header files for libpq (postgresql library) > >> postgresql-doc7.0.2-6 Documentation for the PostgreSQL database. > >> python-pygresql 7.0.2-6 PostgreSQL module for Python > >> zope 2.2.2-1 The Z Object Publishing Environment > >> zope-pygresqlda 0.3rjr2-1 A Zope Database Adapter for PostgreSQL > >> > >> Between those packages, following the PostgreSQL tutorial at > >> postgresql.org, and following the Z SQL Methods User's Guide > >> (http://www.zope.org/Documentation/Guides/ZSQL-HTML/ZSQL.html), I'm > >> working fine. Where are the actual errors? > >> > >> -- > >> Mike Renfro / R&D Engineer, Center for Manufacturing Research, > >> 931 372-3601 / Tennessee Technological University -- [EMAIL PROTECTED] > >> > >> ___ > >> 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.zope.org/mailman/listinfo/zope-dev ) > >> > > > > > >___ > >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.zope.org/mailman/listinfo/zope-dev ) > > > > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) > ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] locking help
this Postgres adapter is not multithreaded, check out the ZPoPyDA from zope.org. That is an alternative Postgres adapter that is multithreaded and does not lock up. phil *** REPLY SEPARATOR *** On 11.10.2000 at 08:48 Mark Twiddy wrote: >Hi thanks for the reply >The problem is whenever i do really big query everything stops and waits. > >im using >ZPyGreSQLDA-0.3-rjr2 >and >py-PyGreSQL-2.4 > >thanks >Mark >On Tue, 10 Oct 2000, Mike Renfro wrote: > >> On Tue, Oct 10, 2000 at 04:58:46PM +0930, Mark Twiddy wrote: >> >> > Can someone please tell me what is going on. while querying a >> > postgres database i am unable to access any crap from zope. I have >> > tried creating a db connection in a enternal method and querying >> > through that but it still locks and wont serve any requests. >> >> Don't know if this will help, but my Zope/Postgresql experience has >> gone remarkably well. >> >> I have the following packages installed on an otherwise regular Debian >> 2.2 machine: >> >> libpgsql2 7.0.2-6 Shared library libpq.so.2 for PostgreSQL >> postgresql7.0.2-6 Object-relational SQL database, descended fr >> postgresql-client 7.0.2-6 Front-end programs for PostgreSQL >> postgresql-dev7.0.2-6 Header files for libpq (postgresql library) >> postgresql-doc7.0.2-6 Documentation for the PostgreSQL database. >> python-pygresql 7.0.2-6 PostgreSQL module for Python >> zope 2.2.2-1 The Z Object Publishing Environment >> zope-pygresqlda 0.3rjr2-1 A Zope Database Adapter for PostgreSQL >> >> Between those packages, following the PostgreSQL tutorial at >> postgresql.org, and following the Z SQL Methods User's Guide >> (http://www.zope.org/Documentation/Guides/ZSQL-HTML/ZSQL.html), I'm >> working fine. Where are the actual errors? >> >> -- >> Mike Renfro / R&D Engineer, Center for Manufacturing Research, >> 931 372-3601 / Tennessee Technological University -- [EMAIL PROTECTED] >> >> ___ >> 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.zope.org/mailman/listinfo/zope-dev ) >> > > >___ >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.zope.org/mailman/listinfo/zope-dev ) ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] locking help
Hi thanks for the reply The problem is whenever i do really big query everything stops and waits. im using ZPyGreSQLDA-0.3-rjr2 and py-PyGreSQL-2.4 thanks Mark On Tue, 10 Oct 2000, Mike Renfro wrote: > On Tue, Oct 10, 2000 at 04:58:46PM +0930, Mark Twiddy wrote: > > > Can someone please tell me what is going on. while querying a > > postgres database i am unable to access any crap from zope. I have > > tried creating a db connection in a enternal method and querying > > through that but it still locks and wont serve any requests. > > Don't know if this will help, but my Zope/Postgresql experience has > gone remarkably well. > > I have the following packages installed on an otherwise regular Debian > 2.2 machine: > > libpgsql2 7.0.2-6 Shared library libpq.so.2 for PostgreSQL > postgresql7.0.2-6 Object-relational SQL database, descended fr > postgresql-client 7.0.2-6 Front-end programs for PostgreSQL > postgresql-dev7.0.2-6 Header files for libpq (postgresql library) > postgresql-doc7.0.2-6 Documentation for the PostgreSQL database. > python-pygresql 7.0.2-6 PostgreSQL module for Python > zope 2.2.2-1 The Z Object Publishing Environment > zope-pygresqlda 0.3rjr2-1 A Zope Database Adapter for PostgreSQL > > Between those packages, following the PostgreSQL tutorial at > postgresql.org, and following the Z SQL Methods User's Guide > (http://www.zope.org/Documentation/Guides/ZSQL-HTML/ZSQL.html), I'm > working fine. Where are the actual errors? > > -- > Mike Renfro / R&D Engineer, Center for Manufacturing Research, > 931 372-3601 / Tennessee Technological University -- [EMAIL PROTECTED] > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) > ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help with a DTML expression/comparison
Manuel, You'll probably find that your comparing a string 'begin_day' to an integer 'sequence-item'. Try something like: hth Phil - Original Message - From: "Manuel Amador (Rudd-O) Gerente de desarrollo Alpha Omega Creative Solutions http: //www.alomega.com/" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 10, 2000 9:56 PM Subject: [Zope] Help with a DTML expression/comparison > Hey to everyone, > > I'm shooting myself in the foot here with this > construct: > > > > > > selected > > >&dtml-sequence-item; > > > > > Inserting with dtml-var any of begin_day or sequence- > item yields at some point the same result, logically. > I'm trying to make the form field default to a formerly > specified value. > > BUT, the comparison between the two, won't work. Even > comparing two _.getitems doesn't work. So it's > expected that at no point does the selected property > appear in my html source. > > Please help. I'm shooting myself in the foot here. > > Thanks in advance, > > > Manuel > > -- >Universidad Federico Santa Maria - Campus Guayaquil > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) > ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Medusa Monitor
Use it for debugging sometimes. Is very easy to use. Basically import Zope z = Zope.app() then z is the root of your zope tree so you can do anything. You will need to import any other python modules you need too. terry Hung Jung Lu wrote: > Hi, > > Zope comes with the Medusa monitor (port 8099 by default) which is kind of > cute and allows one to get into the guts of Zope. But do people really use > it? How do people use it? Is there any document describing the usages of > this monitor? Are there some features of this monitor that makes debugging > easier? > > regards, > > Hung Jung > > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 708 124 ICQ: 79303381 ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Fighting htmllib in external method
Dieter: Thanks Dieter. > Jason Spisak writes: > > I want to catalog some html files but I want to strip the html tags out. > > htmlparser does a good job of that, but when I try to acces that from an > > external method, I run into trouble. > You may look at > > URL:http://www.dieter.handshake.de/pyprojects/zope/CatalogSupport.html > > It does the same as you want to do, but without the "formatter". > > Alternatively, you may try a "StringIO" instance as a file object. > That's what I ended up doing. > Finally, I can use files in external methods. > You should, however, be careful as several threads can execute > the same external method concurrently. Therefore, your > files are better not global. That's what I was thinking. I'll stay away from a named file. All my best, Jason Spisak ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Bizarre ZMySQLDA problem...
Tone, What version of the MySQL DA are you using, there is a bug in one of them that causes no data to be returned in specific circumstances, at least as far as I can see. I did at one time fix it, give me a few hours to see what I did and I'll mail you back. hth Phil - Original Message - From: "Tony McDonald" <[EMAIL PROTECTED]> To: "Zope List" <[EMAIL PROTECTED]> Sent: Tuesday, October 10, 2000 5:35 PM Subject: [Zope] Bizarre ZMySQLDA problem... > Hi all, > I've just installed Zope-2.2.1 onto a clean Solaris 8 machine. I've > built Python 1.5.2 from source and have MySQL 3.22 on the server. > > I've compiled up the ZMySQLDA product and put the MySQLModule.so in > the correct place (ie one directory up from the src directory). > > I've restarted the Zope server, checked that ZMySQLDA is not broken > and created a connection: > test@localhost root > > I've created a ZSQL method that is essnetially 'select * from > my_table' (and there *is* data in this table). > > The DA reports: > There was no data matching this Z MySQL Database Connection (connected) query. > > The same query produces a flood of data from the mysql monitor. > > I'm totally baffled here, and would really appreciate any advice... > > Tone > -- > Dr Tony McDonald, FMCC, Networked Learning Environments Project > http://nle.ncl.ac.uk/ > The Medical School, Newcastle University Tel: +44 191 222 5116 > A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) > ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Medusa Monitor
Hi, Zope comes with the Medusa monitor (port 8099 by default) which is kind of cute and allows one to get into the guts of Zope. But do people really use it? How do people use it? Is there any document describing the usages of this monitor? Are there some features of this monitor that makes debugging easier? regards, Hung Jung _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Second question ?=)
This is my second question: Id like to run a with specific parameters to its namespace This is the deal I want to construct a dropdown list, with all values retrieved from a SQL stored procedure, so if I open the form with no variables, all of them appear, but if i submit the form to itself, the variable gets passed on to parameters, and the SQL query receives it because it's on its parameter list, and filters the query. I don't want to alter the SQL query methods to fetch all data, but i'd like to override the values of its namespace so I can specify NULL and get all data, and in calling method compare each data in the loop to insert a selected property in the dropdown object that matches the existing variable. Any pointers? -- Universidad Federico Santa Maria - Campus Guayaquil ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] fmt=structured-text seems wrongish
Dennis Nichols writes: > > > > And shouldn't the fmt specification tell how > myDoc.description is to be presented instead of how it is stored? I agree with you that "fmt" should specify how the value should be formatted and not how it is stored. > For example, let's say I can choose to store description as plain text, as > structured text, or as html. Regardless of how it is stored, I might want > to ask for it as: > > fmt=raw in case I want to edit it > fmt=html in case I want to send it to a browser I fear, the "fmt" machinery will not know, how the value is marked up (plain/stx/html). This knowledge would be necessary for a format change. Currently, I would say, this is not a task for the "fmt" argument but for the application. Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Where is the difference between URL0 and BASE3
Loibl Johann writes: > Could someone tell me where is the difference between > URL0 and BASE3 or > URL1 and BASE2 ... URLn removes "n" URL path components from the right, BASEn consists of the first "n+1" or "n+2" URL components. Thus, if you URL is "host/u1/u2//un", then URL0 is URL, URL1 is the last component "un" removed, ULR2 is the last two components "u{n-1}/un" removed etc. Usually (unless you access Zope via CGI), BASE0=BASE1=host. BASE2 is "host/u1", BASE3 is "host/u1/u2" etc. If your URL has 3 components, then URL0 and BASE3 are identical, otherwise, they are not. Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] locking help
Mark Twiddy writes: > Can someone please tell me what is going on. while querying a postgres > database i am unable to access any crap from zope. I have tried creating a > db connection in a enternal method and querying through that but it still > locks and wont serve any requests. We saw a similar problem description recently in this list. There, ZODBCDA was blocking during database queries. Maybe, your database adapter has similar problems. Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Fighting htmllib in external method
Jason Spisak writes: > I want to catalog some html files but I want to strip the html tags out. > htmlparser does a good job of that, but when I try to acces that from an > external method, I run into trouble. You may look at URL:http://www.dieter.handshake.de/pyprojects/zope/CatalogSupport.html It does the same as you want to do, but without the "formatter". Alternatively, you may try a "StringIO" instance as a file object. Finally, I can use files in external methods. You should, however, be careful as several threads can execute the same external method concurrently. Therefore, your files are better not global. Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] pop back namespace from stack ?
Beuserie =?ISO-8859-1?Q?Fr=E9d=E9ric?= (stbrice dsi) writes: > How can I pop back one namespace from the stack ?. In fact I need the id > from the > dtml-method I'm was called from. You can not (from DTML). The caller must help you, e.g. by: calling method: . called method: ... ... Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Disadvantages of using DTML (fwd)
Andy, I am actually just starting working with it. As long as I can have help futzing with the aq_parent stuff to get it to work, I'll be using it in my intranet app. My real desire is to find a way to construct these type of html objects from html. Like a poor man's HyperDOM. :) > Cool, do I see a Zope product coming up? > > - Original Message - > From: "Jason Spisak" <[EMAIL PROTECTED]> > To: "Andy McKay" <[EMAIL PROTECTED]> > Sent: Tuesday, October 10, 2000 5:13 AM > Subject: Re: [Zope] Disadvantages of using DTML > > > > Andy: > > > > Actually, I have been playing with it. > > What it does is create HTML, XHTML, XML from python objects like so: > > > > p = TABLE(bgcolor="#0", border="0", cellpadding="1", > > TR( > > TD('my stuff goes here'))) > > > > print p > > > > > > > > my stuff goes here > > > > So I just create bit and pieces that get called to form a UI. > > Aquisition works too. I have a property in a containing folder, that I > > called as the bgcolor of the table and it worked fine. > > > > All my best, > > > > > > > The docs I quickly looked at suggested it just parsed XHTML into HTML, > > > nothing more. It would be interesting useful if it did do so much > more... Im > > > assuming there would be a little bit of Zope integration to do... > > > > > > - Original Message - > > > From: "Jason Spisak" <[EMAIL PROTECTED]> > > > To: "Andy McKay" <[EMAIL PROTECTED]> > > > Sent: Tuesday, October 10, 2000 4:22 AM > > > Subject: Re: [Zope] Disadvantages of using DTML > > > > > > > > > > Andy: > > > > > > > > Since it would be python, can you not call objects, run python, and > lots > > > of > > > > stuff? ;) > > > > > > > > > > > > > You lose out on all the wondeful help you get from this mailing list > :) > > > > > > > > > > But seriously this is a html generator... dtml is a great deal more > than > > > > > just a html formatter, it can call objects, run python and lots of > > > stuff. > > > > > > > > > > - Original Message - > > > > > From: "Jason Spisak" <[EMAIL PROTECTED]> > > > > > To: <[EMAIL PROTECTED]> > > > > > Sent: Tuesday, October 10, 2000 2:43 AM > > > > > Subject: [Zope] Disadvantages of using DTML > > > > > > > > > > > > > > > > Zopists, > > > > > > > > > > > > Can anyone tell me off hand any big disadvantages to not using > DTML > > > > > > (Caching, etc...) and using a package like HyperText > > > > > > > > > > > > http://dustman.net/andy/python/HyperText > > > > > > > > > > > > to produce html display for your objects, and use python to > process > > > it? > > > > > > > > > > > > > > > > > > Jason Spisak > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > ___ > > > > > > 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.zope.org/mailman/listinfo/zope-dev ) > > > > > > > > > > > > > > > > > > > > > > > All my best, > > > > > > > > Jason Spisak > > > > > > > > > > > > > Jason Spisak > > > Jason Spisak [EMAIL PROTECTED] ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Fighting htmllib in external method
Jonothan Farr, Thanks very much! I am new to Python. I coded my first Zope app in entirely DTML, so now I'm moving deeper. That's a handy thing to have. All my best, Jason Spisak [EMAIL PROTECTED] > Try using a StringIO object as your file. > > import htmllib > import formatter > from cStringIO import StringIO > > def index(self, html): > file = StringIO() > fmtr = formatter.AbstractFormatter(formatter.DumbWriter(file)) > p = htmllib.HTMLParser(fmtr) > p.feed(html) > file.seek(0) > return file.read() > > > - Original Message - > From: "Jason Spisak" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 10, 2000 2:47 AM > Subject: [Zope] Fighting htmllib in external method > > > > Howdy Zopsters, > > > > I want to catalog some html files but I want to strip the html tags out. > > htmlparser does a good job of that, but when I try to acces that from an > > external method, I run into trouble. > > > > import htmllib > > import formatter > > > > def index(self, html): > > fmtr = formatter.AbstractFormatter(formatter.DumbWriter(file)) > > p = htmllib.HTMLParser(fmtr) > > return p.feed(html) > > > > Since the DumbWriter uses stdout, this returns None. When I try to write > > to a temporary file, or pipe I get 'bad file descriptor' errors because of > > the way external method function I guess. Any help would really be > > appreciated. > > > > All my best, > > > > > > Jason Spisak > > [EMAIL PROTECTED] > > > > ___ > > 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.zope.org/mailman/listinfo/zope-dev ) > > > > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) > ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope.org Feature Request - Product Download Counter
Ooops... sorry Ethan, didn't mean to send this to the wrong place. Just wanted to see what others felt about it. If it is undoable, cool. If someone figures out a way, it would be really appreciated and certainly a boost to Zopista's and product developers to see how popular and used our products are. That is all. Thanks, J > From: mindlace <[EMAIL PROTECTED]> > Date: Tue, 10 Oct 2000 16:15:44 -0400 > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [Zope] Zope.org Feature Request - Product Download Counter > > Andy McKay wrote: >> >> Of course the only problem with a hit counter is that high traffic requests >> mean continually writing the object into the ZODB each time it gets hit / >> downloaded, whatever. Thats why I release FSCounter which uses the file >> system. I would like to expand this to cover multiple objects... > > The problem is slightly more complicated than this: We have Apache > cache file and image objects. This is a good thing, because they are > static, and Apache will *always* be better than Zope at serving static > content. This is a bad thing, because direct requests for files don't > ever make it to Zope. > > Nonetheless, this doesn't affect the /view method. > > Further, we now have the feature that the listing of products shows the > latest version, no /view method in the middle, for your direct download. > > I may be able to do some parsing of the apache log files for those > things that end in tgz, tar.gz , and zip. This would be somewhat > canonical, except for the fact that because we have cache headers set on > the file objects, they are cached downstream, and so many requests for > cache objects will never make it to our Apache at all. > > ~ethan > > p.s. I'd really appreciate it if requests for improvements of zope.org > be sent to [EMAIL PROTECTED] > > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) > > ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help with a DTML expression/comparison
"Manuel Amador (Rudd-O) Gerente de desarrollo Alpha Omega Creative Solutions http://www.alomega.com/" wrote: > BUT, the comparison between the two, won't work. Even > comparing two _.getitems doesn't work. So it's > expected that at no point does the selected property > appear in my html source. > > Please help. I'm shooting myself in the foot here. Honorific: " SELECTED> "> This works for me where valid_honors is a list of honorifics (['Mr.', 'Ms.','Dr.', ...]) HTH, -- Tim Cook -- Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT * It's easy to stop making mistakes. Just stop having ideas. * FreePM Project Coordinator http://www.freepm.org OSHCA Founding Supporter http://www.oshca.org ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Fighting htmllib in external method
Try using a StringIO object as your file. import htmllib import formatter from cStringIO import StringIO def index(self, html): file = StringIO() fmtr = formatter.AbstractFormatter(formatter.DumbWriter(file)) p = htmllib.HTMLParser(fmtr) p.feed(html) file.seek(0) return file.read() - Original Message - From: "Jason Spisak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 10, 2000 2:47 AM Subject: [Zope] Fighting htmllib in external method > Howdy Zopsters, > > I want to catalog some html files but I want to strip the html tags out. > htmlparser does a good job of that, but when I try to acces that from an > external method, I run into trouble. > > import htmllib > import formatter > > def index(self, html): > fmtr = formatter.AbstractFormatter(formatter.DumbWriter(file)) > p = htmllib.HTMLParser(fmtr) > return p.feed(html) > > Since the DumbWriter uses stdout, this returns None. When I try to write > to a temporary file, or pipe I get 'bad file descriptor' errors because of > the way external method function I guess. Any help would really be > appreciated. > > All my best, > > > Jason Spisak > [EMAIL PROTECTED] > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) > ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope.org Feature Request - Product Download Counter
Yes Apache and caching adds a whole new layer of complexity. But most simple Zope installations dont use it and for quick rough counts it can be useful, of course its rare to be able to replace the log files in terms of accuracy. - Original Message - From: "mindlace" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 10, 2000 1:15 PM Subject: Re: [Zope] Zope.org Feature Request - Product Download Counter > Andy McKay wrote: > > > > Of course the only problem with a hit counter is that high traffic requests > > mean continually writing the object into the ZODB each time it gets hit / > > downloaded, whatever. Thats why I release FSCounter which uses the file > > system. I would like to expand this to cover multiple objects... > > The problem is slightly more complicated than this: We have Apache > cache file and image objects. This is a good thing, because they are > static, and Apache will *always* be better than Zope at serving static > content. This is a bad thing, because direct requests for files don't > ever make it to Zope. > > Nonetheless, this doesn't affect the /view method. > > Further, we now have the feature that the listing of products shows the > latest version, no /view method in the middle, for your direct download. > > I may be able to do some parsing of the apache log files for those > things that end in tgz, tar.gz , and zip. This would be somewhat > canonical, except for the fact that because we have cache headers set on > the file objects, they are cached downstream, and so many requests for > cache objects will never make it to our Apache at all. > > ~ethan > > p.s. I'd really appreciate it if requests for improvements of zope.org > be sent to [EMAIL PROTECTED] > > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) > ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope.org Feature Request - Product Download Counter
Andy McKay wrote: > > Of course the only problem with a hit counter is that high traffic requests > mean continually writing the object into the ZODB each time it gets hit / > downloaded, whatever. Thats why I release FSCounter which uses the file > system. I would like to expand this to cover multiple objects... The problem is slightly more complicated than this: We have Apache cache file and image objects. This is a good thing, because they are static, and Apache will *always* be better than Zope at serving static content. This is a bad thing, because direct requests for files don't ever make it to Zope. Nonetheless, this doesn't affect the /view method. Further, we now have the feature that the listing of products shows the latest version, no /view method in the middle, for your direct download. I may be able to do some parsing of the apache log files for those things that end in tgz, tar.gz , and zip. This would be somewhat canonical, except for the fact that because we have cache headers set on the file objects, they are cached downstream, and so many requests for cache objects will never make it to our Apache at all. ~ethan p.s. I'd really appreciate it if requests for improvements of zope.org be sent to [EMAIL PROTECTED] ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Help with a DTML expression/comparison
Hey to everyone, I'm shooting myself in the foot here with this construct: selected >&dtml-sequence-item; Inserting with dtml-var any of begin_day or sequence- item yields at some point the same result, logically. I'm trying to make the form field default to a formerly specified value. BUT, the comparison between the two, won't work. Even comparing two _.getitems doesn't work. So it's expected that at no point does the selected property appear in my html source. Please help. I'm shooting myself in the foot here. Thanks in advance, Manuel -- Universidad Federico Santa Maria - Campus Guayaquil ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Disadvantages of using DTML
You lose out on all the wondeful help you get from this mailing list :) But seriously this is a html generator... dtml is a great deal more than just a html formatter, it can call objects, run python and lots of stuff. - Original Message - From: "Jason Spisak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 10, 2000 2:43 AM Subject: [Zope] Disadvantages of using DTML > Zopists, > > Can anyone tell me off hand any big disadvantages to not using DTML > (Caching, etc...) and using a package like HyperText > > http://dustman.net/andy/python/HyperText > > to produce html display for your objects, and use python to process it? > > > Jason Spisak > [EMAIL PROTECTED] > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) > ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Newbie question : ZopeTime & permissions
Aaron Straup Cope writes: > I did not want to allow the Anonymous role *any* permissions, and the > site I am working in is contained in a folder beneath the root Zope > folder. > > The problem was that I had disabled the "Access contents > information" privilege for the Anonymous user (whose permissions I forgot > are inherited by all other users) at the root level, thus preventing Joe > User from being able to access internals(?) like > ZopeTime even if [it] had permissions at a sub-directory level. Sorry, I was wrong, at least partially! The fact, that "ZopeTime" returns an unprotected DateTime object, does of cause not mean that "ZopeTime" itself is unprotected. After your message, I reexamined your problem: * "ZopeTime" is defined in "OFS.Application.Application", i.e. the top level application object. * "ZopeTime" apparently is not protected by an explicit permission (neither mentioned in an "__ac_permissions__" nor is there a "ZopeTime__roles__" attribute nor is there a new SecurityManager assertion about "ZopeTime". As I understand Zope 2.2 security, this should mean "ZopeTime" is inaccessible from DTML. * However, magically, "ZopeTime" is protected by "Access Contents Information". I can not tell you why. Both is astonishable: * that it is accessible by DTML at all * why "Access Contents Information" is required. Apparently, the Zope security still has some hidden magic. Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Access Control vs Publishing Protoco
Seb Bacon writes: > For me, the 'visibility' problem is a real bugbear. Apart from the > 'security' issue of anon. users being able to list objectIds, it means I am > loathe to allow clients to manage their sites through the manage interface. > This is because they'll see it littered with methods which pop up a login > box whenever they click on them. It looks horrible and unprofessional. I just tried what would happen (as I did not believe it would be as bad as you described it): * I gave "Anonymous" the "View Management Screens" permission for a folder. * I was then able to access the manage URL for the folder (without authentication), but the main frame displayed an acquired "index_html" rather than the folders content view. * I tried to manage a containing DTML method, but a login was requested: "No authentication header". Apparently, DTML method management requires at least an authenticated user. Thus, I played with an authenticated user. The behaviour was not too bad (though not completely satisfactory). As you expected, the folder contents displayed all containing objects, even objects I did not have "View" permissions. When I clicked on such an object, I got an "manage_workspace" screen with just the "ownership" tab. Not overwhelming but not too bad either. When I had "View" permissions but no "change" permissions, I did not get a "manage_workspace" screen, but the object was viewed automatically. Not what I would have expected, but not too bad either. When I had a "change" permission, I got the expected "manage_workspace" screen. > Anyway, I agree with Dieter / Chris. Adding a 'URL Traversable' > ('listable'?) permission to all objects and then tweaking methods that do > the traversing (objectIds, objectValues) would presumably fix this? Would > this be easy? I've never had a look at the security internals, but I'm > looking forward to having a go... I think, the implementation would be easy. Management, however, would be more difficult, as there are no good defaults for the "URL Traversable" permission. It is not easy, to determine (e.g.) for a DTML method/document whether it is only used as a component (such as "standard_html_header") or is a full grown presentation method. Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Quoting
Chris Withers writes: > Dieter Maurer wrote: > > Note, that probably Zope user names may contain characters not > > allowed in Cookie values. > > I wonder how hard it would be to implement the following: > > Quote all characters not allowed in a > cookie It would be easy. The "unquote" would be trickier, because it can not rely on the fact, that the cookie value was quoted. Otherwise, one could implement quoting/unquoting transparently (the best solution from a user point of view). > Quote all characters not allowed in a Zope > 2.2 id (this one could be really handy ;-) Would this really help you? Where would you use this "id_quote"? The only useful place might be the action of an object creation or renaming. However, I am not sure, that I would prefer to get a strangely encoded id rather than an exception that tells me some characters are not allowed in Id's. Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Quoting
Chris Withers writes: > Seb Bacon wrote: > > > > > Quote all characters not allowed in a > > > cookie > > > > wouldn't do the job? > > Dunno... Dieter? I reread the cookie spec: in cookie values forbidden are: semi-colon, comma and white space These are not the characters handled by "url_quote". > That reminds me, it's silly that there's not , > so I patched my zope to provide it You, usually, will not need an "url_unquote". You use "url_quote" when you construct part of an URL. This URL will already have been decoded when you get it back in Zope (i.e. the unquote is done automatically for you). Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Upload just file headers?
I'd like to make a form that looks like the typical file upload form, but will upload ONLY the header of the chosen file. Anyone know how / if this can be done? -- .paul winkler.. slinkP arts: music, sound, illustration, design, etc. web page: http://www.slinkp.com A member of ARMS: http://www.reacharms.com ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Fighting htmllib in external method
Howdy Zopsters, I want to catalog some html files but I want to strip the html tags out. htmlparser does a good job of that, but when I try to acces that from an external method, I run into trouble. import htmllib import formatter def index(self, html): fmtr = formatter.AbstractFormatter(formatter.DumbWriter(file)) p = htmllib.HTMLParser(fmtr) return p.feed(html) Since the DumbWriter uses stdout, this returns None. When I try to write to a temporary file, or pipe I get 'bad file descriptor' errors because of the way external method function I guess. Any help would really be appreciated. All my best, Jason Spisak [EMAIL PROTECTED] ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Disadvantages of using DTML
Zopists, Can anyone tell me off hand any big disadvantages to not using DTML (Caching, etc...) and using a package like HyperText http://dustman.net/andy/python/HyperText to produce html display for your objects, and use python to process it? Jason Spisak [EMAIL PROTECTED] ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Namespace within a product... (argh...)
On Tue, Oct 10, 2000 at 11:56:11AM +0200, Pierre-Julien Grizel wrote: > > So - I had a look at DTMLDocument.py and saw the following method : > > def __call__ (self, client = None, REQUEST = {}, **kw): > ... > > SO - I try to create this method for my product : > > def __call__ (self, client = None, REQUEST = {}, **kw): > print client > print REQUEST > > > and it prints : > None > {} > > > It seems that in fact the DTML document doesn't actually pass _.None and > _ to my object. WHY ?? Evan already answered, but the short story is: your object needs to have an attribute (it may be a class attribute and usually is) named "isDocTemp", and this attribute must evaluate to true. Otherwise, your object is called with no parameters. The relevant code is: if hasattr(v,'isDocTemp') and v.isDocTemp: v=v(None, self) else: try: v=v() except (AttributeError,TypeError): pass (from DocumentTemplate/DT_Util.py:277) []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, whatever it is that we are. http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Black Magic
From: Fred Yankowski <[EMAIL PROTECTED]> > The information you just provided about the DTML Method "call > signature" and the like is very useful. Is this kind of reference > material written down somewhere in a guide/how-to/wiki/...? The only thing I could find offhand is http://www.zope.org//Wikis/DevSite/Projects/PythonMethods/NamespaceObjectInterface, which I wrote. I don't know if ZDP or someone else has documented it. Cheers, Evan @ digicool & 4-am ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Fighting htmllib in external method
Howdy Zopsters, I want to catalog some html files but I want to strip the html tags out. htmlparser does a good job of that, but when I try to acces that from an external method, I run into trouble. import htmllib import formatter def index(self, html): fmtr = formatter.AbstractFormatter(formatter.DumbWriter(file)) p = htmllib.HTMLParser(fmtr) return p.feed(html) Since the DumbWriter uses stdout, this returns None. When I try to write to a temporary file, or pipe I get 'bad file descriptor' errors because of the way external method function I guess. Any help would really be appreciated. All my best, Jason Spisak [EMAIL PROTECTED] ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] locking help
On Tue, Oct 10, 2000 at 04:58:46PM +0930, Mark Twiddy wrote: > Can someone please tell me what is going on. while querying a > postgres database i am unable to access any crap from zope. I have > tried creating a db connection in a enternal method and querying > through that but it still locks and wont serve any requests. Don't know if this will help, but my Zope/Postgresql experience has gone remarkably well. I have the following packages installed on an otherwise regular Debian 2.2 machine: libpgsql2 7.0.2-6 Shared library libpq.so.2 for PostgreSQL postgresql7.0.2-6 Object-relational SQL database, descended fr postgresql-client 7.0.2-6 Front-end programs for PostgreSQL postgresql-dev7.0.2-6 Header files for libpq (postgresql library) postgresql-doc7.0.2-6 Documentation for the PostgreSQL database. python-pygresql 7.0.2-6 PostgreSQL module for Python zope 2.2.2-1 The Z Object Publishing Environment zope-pygresqlda 0.3rjr2-1 A Zope Database Adapter for PostgreSQL Between those packages, following the PostgreSQL tutorial at postgresql.org, and following the Z SQL Methods User's Guide (http://www.zope.org/Documentation/Guides/ZSQL-HTML/ZSQL.html), I'm working fine. Where are the actual errors? -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- [EMAIL PROTECTED] ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZODB question: get older object versions without undo
Hello Philipp! > 1. Since ZODB does not overwrite objects on change one can get the older versions >when undoing the changes. > My question now: how can I access older versions of objects without undoing >transactions? (I had a short glance at the ZODB classes, but found nothing) The code for the History functionality is in History.py, which is located in the .../lib/python/OFS directory of a Zope 2.2.x installation. It is currently used by DTMLDocument .py and DTMLMethod.py (both also in OFS) and implements the history tab functionality for the management interface. As the actual implementation is plain simple (import History, add "History.Historical" to the class definitions and "+History.Historical.manage_options" to the manage_options), I patched my Image.py, which defines the classes for images and files, accordingly. The only thing that won't work right "out of the box" is the "Compare" option - you'd have to implement document-specific comparison code. I don't know if it is that easy to do the same patch with ZClasses, but it might be worth a try (I guess patching the necessary base classes should work). As you can script everything in the management interface, this patch makes all your file/image objects' old versions accessible, including date of change and id of the person who changed. I think it would also be possible to look at what History.py is doing and implement the functionality you need without the "overhead" of patching the object classes. I didn't check in detail, but all you need seems to be there (or should be found in some ZODB documentation). Regards Joachim. Content-Type: text/html; name="unnamed" Content-Transfer-Encoding: 7bit Content-Description: -- Iuveno - Smart Communication Joachim Werner _ Marie-Curie-Straße 6 85055 Ingolstadt Tel.: +49 841/90 14-325 (Fax -322) Mobil: +49 179/39 60 327 E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED] WWW: www.iuveno.de/www.iuveno-net.de ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How: /foo?var=bar equiv to /foo/bar
ZSQLMethods does exactly that, have a look at that. Look at michel's wiki. - Original Message - From: "Chris Withers" <[EMAIL PROTECTED]> To: "Heymann William" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 10, 2000 3:56 AM Subject: Re: [Zope] How: /foo?var=bar equiv to /foo/bar > Heymann William wrote: > > > > I am trying to get rid of those question marks in my urls since it > > seems to confuse the users but I am not sure really how to do that. I have > > heard that it can but done but so far I have not found out how it can be > > done. I want for the last piece of the url to be assigned to the varialbe > > if a valid object can not by found. I don't really have a problem if this > > involves python coding I just need a place to start. > > Looks at SiteAccess and the traversal interface in the itnerfaces wiki: > http://www.zope.org/Members/michel/Projects/Interfaces/Traversal > > I was going to write a product to do just this, but sadly time is > lacking :-S > > cheers, > > Chris > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) > ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope.org Feature Request - Product Download Counter
Yup... the ZODB does grow with each hit. Not much of course, but some. I am sure for a site such as Zope.org it would not be unmanageable. They most certainly have automated ways of packing the DB. J > From: "Andy McKay" <[EMAIL PROTECTED]> > Date: Tue, 10 Oct 2000 10:05:24 -0700 > To: <[EMAIL PROTECTED]>, "J. Atwood" <[EMAIL PROTECTED]> > Subject: Re: [Zope] Zope.org Feature Request - Product Download Counter > > Of course the only problem with a hit counter is that high traffic requests > mean continually writing the object into the ZODB each time it gets hit / > downloaded, whatever. Thats why I release FSCounter which uses the file > system. I would like to expand this to cover multiple objects... > > - Original Message - > From: "J. Atwood" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 10, 2000 5:17 AM > Subject: [Zope] Zope.org Feature Request - Product Download Counter > > >> It would be really nice to know how many people are downloading the >> products. This would also be a great feature to add to the actual >> Zope distribution. I know you could get this from the logs (easily) >> but you could also add a small counter to the product 'view' method, >> something along the lines of what is in the Simple Url products (BTW >> one of my favorites) and make it something you can turn on or off for >> your products. >> >> >> >> >> >> Thanks, >> J >> >> ___ >> 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.zope.org/mailman/listinfo/zope-dev ) >> > > ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope.org Feature Request - Product Download Counter
Of course the only problem with a hit counter is that high traffic requests mean continually writing the object into the ZODB each time it gets hit / downloaded, whatever. Thats why I release FSCounter which uses the file system. I would like to expand this to cover multiple objects... - Original Message - From: "J. Atwood" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 10, 2000 5:17 AM Subject: [Zope] Zope.org Feature Request - Product Download Counter > It would be really nice to know how many people are downloading the > products. This would also be a great feature to add to the actual > Zope distribution. I know you could get this from the logs (easily) > but you could also add a small counter to the product 'view' method, > something along the lines of what is in the Simple Url products (BTW > one of my favorites) and make it something you can turn on or off for > your products. > > > > > > Thanks, > J > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) > ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Bizarre ZMySQLDA problem...
Hi all, I've just installed Zope-2.2.1 onto a clean Solaris 8 machine. I've built Python 1.5.2 from source and have MySQL 3.22 on the server. I've compiled up the ZMySQLDA product and put the MySQLModule.so in the correct place (ie one directory up from the src directory). I've restarted the Zope server, checked that ZMySQLDA is not broken and created a connection: test@localhost root I've created a ZSQL method that is essnetially 'select * from my_table' (and there *is* data in this table). The DA reports: There was no data matching this Z MySQL Database Connection (connected) query. The same query produces a flood of data from the mysql monitor. I'm totally baffled here, and would really appreciate any advice... Tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5116 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Error List
Take a look at this http://www.python.org/doc/current/lib/module-exceptions.html Dan ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Error List
Hi! Is there somewhere I can get a list of errors and their meanings? Thanks! Yvonne ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Black Magic
Evan, The information you just provided about the DTML Method "call signature" and the like is very useful. Is this kind of reference material written down somewhere in a guide/how-to/wiki/...? I tried to figure out the call signature of a Python method by having the called function use just "(*varargs, **kwargs)" as formal parameters, but the inscrutable mapply() function seems to thwart that effort as mapply() adjusts the function call according to what parameters the called function (or callable object, ...) expects. Very weird. Is there some document that covers the how and why of mapply()? On Tue, Oct 10, 2000 at 11:17:13AM -0400, Evan Simpson wrote: > 1. DTML Methods' __call__ signature is (client=None, REQUEST={}, > RESPONSE=None, **kw). The client, REQUEST, and keyword arguments > are layered to form the namespace for the Method, with the keywords > on top, then the client, then REQUEST. ... -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] how to "call" sequence-item
Joachim Schmitz wrote: > Here's your problem, thanks to _'s 'itneresting' implementation of __getitem__... ...what you really want is: cheers, Chris ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] how to "call" sequence-item
Hello, I'm using the photo-product, when one has created a photo-instance "image" you can render this like so: now I wanted to loop over all photos in a folder "Images" and did: that displays all photos in their original size, but gives: Error Type: TypeError Error Value: call of non-function (type string) how can I call a sequence-item ? Mit freundlichen Grüßen Joachim Schmitz AixtraWare, Ing. Büro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] REQUEST.set size
From: Paul Zwarts <[EMAIL PROTECTED]> > ValueError: PQsendQuery() -- query is too long. Maximum length is 16382 This is purely a PostgreSQL issue; Some (all? not sure.) versions of PostgreSQL have a hard limit on the length of query strings. You have to break your query into multiple smaller queries. Cheers, Evan @ digicool & 4-am ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Black Magic
From: Chris Withers <[EMAIL PROTECTED]> > Pierre-Julien Grizel wrote: > > It seems that in fact the DTML document doesn't actually pass _.None and > > _ to my object. WHY ?? > > This is deep voodoo that I don't fully understand. To me, it appears > that what you get depends on how your __call__ was called... > > The arguments vary dependign on whether: > -you were called from a bit of DTML > -traversed directly through a URL > -called from soem python you wrote Here's the scoop: 1. DTML Methods' __call__ signature is (client=None, REQUEST={}, RESPONSE=None, **kw). The client, REQUEST, and keyword arguments are layered to form the namespace for the Method, with the keywords on top, then the client, then REQUEST. 2. If you call a DTML Method in a Python expression, its namespace will be empty unless you explicitly pass a client, REQUEST, and/or keyword arguments. 3. URL traversal automatically tries to look up parameter names in the REQUEST. Both REQUEST and RESPONSE are found in REQUEST, so they are passed to the Method. 4. When an object is named in the name attribute of a DTML tag, the DTML code checks to see whether the object is callable and has a true attribute called "isDocTemp". If so, it passes the namespace to the REQUEST parameter. Otherwise, if the object is callable it calls it with no arguments. Thus, to simulate in Python code, including DTML expressions, you must either use "obj(_.None, _)" or "obj(REQUEST=_)". Cheers, Evan @ digicool & 4-am ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Newbie question : ZopeTime & permissions
Yes, it was a misunderstanding regarding basic user permissions and the Anonymous role on my part. I did not want to allow the Anonymous role *any* permissions, and the site I am working in is contained in a folder beneath the root Zope folder. The problem was that I had disabled the "Access contents information" privilege for the Anonymous user (whose permissions I forgot are inherited by all other users) at the root level, thus preventing Joe User from being able to access internals(?) like ZopeTime even if [it] had permissions at a sub-directory level. If I've got it wrong, I would be grateful if someone would correct me. Otherwise, I hope that helps other newbies who find themselves in a similar situation. On Sun, 8 Oct 2000, Dieter Maurer wrote: > Aaron Straup Cope writes: > > My problem is that I can't seem to figure out, specifically, which > > permissions to give a user that will allow them to read ZopeTime(). > Strange... > > "DateTime.DateTime" objects (and therefore "ZopeTime") are > explicitely unprotected (and can be used by everyone). > > I tried your example as "Anonymous" (Zope 2.2.2) and > it worked as expected (i.e. no NameError). > > > Dieter > ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] pop back namespace from stack ?
> In fact I need the id from the dtml-method I'm was called from Try Dan Beuserie Frédéric (stbrice dsi) wrote: > > hi, > > How can I pop back one namespace from the stack ?. In fact I need the id > from the > dtml-method I'm was called from. > > thanks a lot. > > - > Beuserie Frederic > DSI / Système et Exploitation - 3 Suisses Belgique > > Tel: +3269/882485 / Fax: +3269/882491 > Email: [EMAIL PROTECTED] > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Where is the difference between URL0 and BASE3
Hi together, Could someone tell me where is the difference between URL0 and BASE3 or URL1 and BASE2 ... Thanks for your helping hand, Hannes ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Animated GIFs
Hello, it's me again. I found out what the matter of my problems was. I tried the animGif on several other computers with different versions of NS, on every of them it worked. And here's the kicker: It also worked on another computer which had the same version installed like me! Therefore, something with my NS installation seems to be wrong! Thanks to you all! Lars ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZODB question: get older object versions without undo
A work around is to pack the DB regularly (Control_Panel/Database_Management). On Tue, 10 Oct 2000, Philipp Auersperg wrote: > 2.Is it possible ( or will be ) to define ZODB objects for which updates are done by >overwriting ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope.org Feature Request - Product Download Counter
It would be really nice to know how many people are downloading the products. This would also be a great feature to add to the actual Zope distribution. I know you could get this from the logs (easily) but you could also add a small counter to the product 'view' method, something along the lines of what is in the Simple Url products (BTW one of my favorites) and make it something you can turn on or off for your products. Thanks, J ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZODB question: get older object versions without undo
Philipp Auersperg wrote: > I have two questons concerning ZODB: > > 1. Since ZODB does not overwrite objects on change one can get the older versions when > undoing the changes. >My question now: how can I access older versions of objects without undoing? > transactions? (I had a short glance at the ZODB classes, but found nothing) In Zope 2.2, objects that expose a "history" tab (e.g. DTML Methods) can be reverted to one of their historical revisions. You may want to look at how these objects implement this feature if you'd like to create your own historying objects. > 2.Is it possible ( or will be ) to define ZODB objects for which updates are done by > overwriting and not appending to the object database Not with FileStorage... it would be possible to do so with a relational storage or with another kind of storage like BerkeleyStorage. > - That is an important issue for objects that are subject to frequent and simple > changes. For example Webcounters or Advertising banners that count the clicks. Solutions > to write these changes into external files (like FSCounter) are not more than emergency > solutions for me. For right now, the only way to get the behavior you want is to use a nonundoing storage. In the future, the default Zope storage will probably not be FileStorage. Instead, it will probably be something more flexible that doesn't require an all-appends strategy to maintain transactional integrity (or at least one that abstracts this behavior out). With a (as-yet-mythical) next-generation storage, there will be a more granular way to indicate that you'd like an object to overwrite a previous historical revision. ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Quoting
Seb Bacon wrote: > > > Quote all characters not allowed in a > > cookie > > wouldn't do the job? Dunno... Dieter? > That reminds me, it's silly that there's not , > so I patched my zope to provide it. I was wondering if there's a mechanism > for getting this kind of simple tweak into the source tree? Yup, the collecor: http://classic.zope.org:8080/Collector/ Submit it as a 'Feature Request w/patch' cheers, Chris ___ 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.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Quoting
> Quote all characters not allowed in a > cookie wouldn't do the job? That reminds me, it's silly that there's not , so I patched my zope to provide it. I was wondering if there's a mechanism for getting this kind of simple tweak into the source tree? seb ___ 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.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Access Control vs Publishing Protoco
> > This is because the thing which makes > > the problem hard is that something like standard_html_header > wants to be > > editable by Managers TTW, which means it also has to be visible TTW. > > However, it's probably not something you want exposed to anonymous > > users, especially as a TTW enitity in its own right. objectIds is my > > other favourite example ;-) OK, I'm still a newbie, and in particular I have yet to get my head round zope security properly. But I'm going to attempt to comment on this anyway. For me, the 'visibility' problem is a real bugbear. Apart from the 'security' issue of anon. users being able to list objectIds, it means I am loathe to allow clients to manage their sites through the manage interface. This is because they'll see it littered with methods which pop up a login box whenever they click on them. It looks horrible and unprofessional. Anyway, I agree with Dieter / Chris. Adding a 'URL Traversable' ('listable'?) permission to all objects and then tweaking methods that do the traversing (objectIds, objectValues) would presumably fix this? Would this be easy? I've never had a look at the security internals, but I'm looking forward to having a go... Chris W was talking about adding security on a protocol level as well as an object level, but I can't really see why you would only want to be able to edit a document through webDAV but *not* TTW. In my mind, you're either authenticated to do a task, or you're not. It doesn't matter *how* you do it. That's why 'listable' or something like it would be a better name for the permission than 'URL Traversable', IMHO (although they both sound *ugly*). Someone mentioned they found the ftp access permission useful - I'd be interested to know how / why. seb. ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] ZODB question: get older object versions without undo
I have two questons concerning ZODB: 1. Since ZODB does not overwrite objects on change one can get the older versions when undoing the changes. My question now: how can I access older versions of objects without undoing transactions? (I had a short glance at the ZODB classes, but found nothing) 2.Is it possible ( or will be ) to define ZODB objects for which updates are done by overwriting and not appending to the object database - That is an important issue for objects that are subject to frequent and simple changes. For example Webcounters or Advertising banners that count the clicks. Solutions to write these changes into external files (like FSCounter) are not more than emergency solutions for me. thanks phil
Re: [Zope] zope 2.2.2 not compiling
roland, there is a precompiled Win32 version available to download at: http://www.zope.org/Products/Zope/2.2.2/Zope-2.2.2-win32-x86.exe use that instead. jens on 10/10/00 3:02, Roland Tepp at [EMAIL PROTECTED] wrote: > Hi. I downloaded Zope 2.2.2 source and I am trying to compile it on > WinNT to run without pcgi and it fails (console output following this letter). > > I tried to track down the problem but I don't seem to make any progress. > Could You help me please... > > -- > Compiling python modules > > -- > Building extension modules > > > Compiling extensions in lib/python > cp D:\Python/lib/python/config/Makefile.pre.in . > The name specified is not recognized as an > internal or external command, operable program or batch file. > Traceback (innermost last): > File "D:\Python\Zope-2.2.2\wo_pcgi.py", line 116, in ? > if __name__=='__main__': main(sys.argv[0]) > File "D:\Python\Zope-2.2.2\wo_pcgi.py", line 104, in main > import build_extensions > File "D:\Python\Zope-2.2.2\inst\build_extensions.py", line 96, in ? > make('lib','python') > File "D:\Python\Zope-2.2.2\inst\do.py", line 135, in make > do("cp %s ." % wheres_Makefile_pre_in()) > File "D:\Python\Zope-2.2.2\inst\do.py", line 104, in do > if i and picky: raise SystemError, i > SystemError: 1 > ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] REQUEST.set size
Hi again, Some extra info from reproducing the error again: ValueError: PQsendQuery() -- query is too long. Maximum length is 16382 This error comes from the traceback AFTER the method is called to store the list in the dbms so I assume that the error is actually the DBMS field size and NOT the request.set as I had imagined. Then that leads to overflow tables... which I cant seem to create in PGSQL as I know with Solid. Anyone have suggestions? Cheers, Paz Paul Zwarts wrote: > Hi all, > > I am new to Zope but worked for 2 years in a dev-env called Uniface so > Im fairly up to speed on Zope quickly. But I am having a problem writing > data through a REQUEST.set that is larger than its apparent limit. > (sorry can remember the exact error i get from Zope) > > What I am trying to do is collect in a field a large list of emails that > are gathered in a dtml-in statement with a REQUEST.set('all', all + > email) nested in the loop. While appending the namespace to store the > data in PGSQL, i always get the size error which i assume is coming from > the publisher saying that a the request can only have a byte size of > 1800 bytes or so. > > Im not so hot with straight SQL because Uniface had its own methods, so > Im not sure if I can append data directly to a stored field or if I need > to continue trying to use the REQUEST.set. After the hundreth occurence > in the IN, the namespace I use to store the appended data, so I cannot > fully make a list of 2000 occurences. Any ideas? > > Sorry, no code to show what Im doing but it should be pretty easy to > understand for all you veterans out there... > > TIA, > > -- > Paz > Oratrix Development BV > http://www.oratrix.com > GRiNS SMIL Editor > - > > ___ > 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.zope.org/mailman/listinfo/zope-dev ) -- Paz Oratrix Development BV http://www.oratrix.com GRiNS SMIL Editor - ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Black Magic
Pierre-Julien Grizel wrote: > It seems that in fact the DTML document doesn't actually pass _.None and > _ to my object. WHY ?? This is deep voodoo that I don't fully understand. To me, it appears that what you get depends on how your __call__ was called... The arguments vary dependign on whether: -you were called from a bit of DTML -traversed directly through a URL -called from soem python you wrote Maybe someone from DC could shed some light on 'the rules' or point us to soem documentation? cheers, Chris ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How: /foo?var=bar equiv to /foo/bar
Heymann William wrote: > > I am trying to get rid of those question marks in my urls since it > seems to confuse the users but I am not sure really how to do that. I have > heard that it can but done but so far I have not found out how it can be > done. I want for the last piece of the url to be assigned to the varialbe > if a valid object can not by found. I don't really have a problem if this > involves python coding I just need a place to start. Looks at SiteAccess and the traversal interface in the itnerfaces wiki: http://www.zope.org/Members/michel/Projects/Interfaces/Traversal I was going to write a product to do just this, but sadly time is lacking :-S cheers, Chris ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] pop back namespace from stack ?
hi, How can I pop back one namespace from the stack ?. In fact I need the id from the dtml-method I'm was called from. thanks a lot. - Beuserie Frederic DSI / Système et Exploitation - 3 Suisses Belgique Tel: +3269/882485 / Fax: +3269/882491 Email: [EMAIL PROTECTED] ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Quoting
Dieter Maurer wrote: > > Note, that probably Zope user names may contain characters not > allowed in Cookie values. I wonder how hard it would be to implement the following: Quote all characters not allowed in a cookie Quote all characters not allowed in a Zope 2.2 id (this one could be really handy ;-) cheers, Chris ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Still need help about Product namespace
Toby Dickenson wrote: > > On Tue, 10 Oct 2000 10:51:09 +0200, Pierre-Julien Grizel > <[EMAIL PROTECTED]> wrote: > > >I still need help about my product needing to know its namespace... > > You also need to read the answers already provided. > > http://www.zope.org/Members/htrd/howto/FunctionTemplate > I saw your answer and I did downloaded your program... But it still doesn't work, the dtml-let statement doesn't have any effect on the namespace the TemplateClass instance fetches. But maybe is there a different way to 'call' my product, than doing a ? I double-checked that you had the same problem as me : when doing a dtml-var on a TemplateClass instance, neither client nor context are passed... Anyway, many thanks for your work, it has been useful for me understanding the TemplateDict mechanism. P.-J. -- If the only tool you have is a hammer, you tend to see every problem as a nail. Si le seul outil dont vous disposez est un marteau, vous avez tendance à voir chaque problème comme un clou. --Abraham Maslow ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Web statistics
At 2:03 PM + 10/7/2000, Stephan Goeldi wrote: >Is there something like webalizer for Zope? >I would like to create a statistic of my website's visits. Webalizer and Analog will work great. Zope logs are standard. J ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Still need help about Product namespace
On Tue, 10 Oct 2000 10:51:09 +0200, Pierre-Julien Grizel <[EMAIL PROTECTED]> wrote: >I still need help about my product needing to know its namespace... You also need to read the answers already provided. http://www.zope.org/Members/htrd/howto/FunctionTemplate Toby Dickenson [EMAIL PROTECTED] ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Namespace within a product... (argh...)
Well, beeing very straightforward, I read this, in OSFP/Help/DTMLDocument.py : """ A DTMLDocument implicitly pass itself as a client argument in addition to the specified client, so names are looked up in the DTMLDocument itself. Passing in a namespace to a DTML Document is often referred to as providing the Document with a *context*. DTML Documents are called three ways: From DTML -- A DTML Document can be called from another DTML Method or Document:: In this example, the Document 'aDTMLDocument' is being called from another DTML object by name. The calling method passes the value 'this' as the client argument and the current DTML names pace as the REQUEST argument. The above is identical to this following usage in a DTML Python expression:: From Python -- Products, External Methods, and PythonMethods can call a DTML Document in the same way as calling a DTML Document from a Python expression in DTML; as shown in the previous example. By the Publisher -- When the URL of a DTML Document is fetched from Zope, the DTML Document is called by the publisher. The REQUEST object is passes as the second argument to the Document. """ So - I had a look at DTMLDocument.py and saw the following method : def __call__ (self, client = None, REQUEST = {}, **kw): ... SO - I try to create this method for my product : def __call__ (self, client = None, REQUEST = {}, **kw): print client print REQUEST and it prints : None {} It seems that in fact the DTML document doesn't actually pass _.None and _ to my object. WHY ?? How can I enforce DTML Docs/Meths to pass it anyway ??? Many thanks, P.-J. -- If the only tool you have is a hammer, you tend to see every problem as a nail. Si le seul outil dont vous disposez est un marteau, vous avez tendance à voir chaque problème comme un clou. --Abraham Maslow ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] (no subject)
Chris Withers writes: > Toby Dickenson wrote: > > Those people were concerned that too many things were exposed via > > ZPublisher also My interpretation was that the issue is one of > > access control, not publishing protocol. > > I think the issue is that you can't limit the visibility of objects > right now. > but there doesn't appear to be any easy way to say "right, > I want this object exposed for reading and writing via FTP and reading > via HTTP, while this one shouldn't be URL traversable but I'd like to > edit it via WebDAV and this method is for use via XML-RPC but really > shouldn't be visible anywhere else.) I agree with Toby: Unless there are drastic differences in capabilities for protocols, we should focus on access/visibility independent of protocol. To get a feeling what I mean with drastic differences: When SOAP access would allow me to "attack" (hack, espionage, steal, or whatever) a Zope site in some minutes when the same attack would take years via HTTP, then we should be concerned with protocol specific forms of restrictions. However, as Toby pointed out, up to now I can do as bad things via HTTP as I can do with any other protocols. > This is because the thing which makes > the problem hard is that something like standard_html_header wants to be > editable by Managers TTW, which means it also has to be visible TTW. > However, it's probably not something you want exposed to anonymous > users, especially as a TTW enitity in its own right. objectIds is my > other favourite example ;-) I think, this could be easily achieved: * provide a "version" of "objectIds" that filters according to authorization. It would return the list of id's for objects I am allowed to see. * This would not yet cover the case of "standard_html_header" and other presentation "components" (that should not generally be seen as independent entities). To handle this case, a different permission would be necessary to distinguish between TTW use and use from inside the presentation machinery (DTML, Templates, whatever). An "URL traversable" permission, as suggested by Chris, seems to fit the bill. Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] overriding __str__ method?
Seb Bacon writes: > I know how to create a form that does what I want (update properties, > whatever). What I don't know is how to include it as part of the rendered > content programmatically. At the moment users have to go to > www.widgets.com/manage_content, log in, and see a set of forms loosely based > on the Zope manage interface. Instead, I'd like them to go to the same url, > and see exactly the same website as someone who's not logged in, except they > have these lovely little "edit this" buttons next to each editable content > element (by which I mean image, text snippet, etc). > > Now I *could* do a > > > edit this > > > in each content element. But I'd much rather be able to subclass or mixin an > 'editable' class for each content element in question. The question is, > what methods should I be providing to manipulate how the content is > rendered? For example, I can provide a new 'view' method in the 'views' tab > for a ZClass, but this does not get called when an object is rendered as > part of another document. The reason I was going on about __str__ is > because that seems to be the only place that you can interfere with how the > content is rendered inline? > > Hope that's clearer, I now do understand it better. Though, I have to admit that others understand you first problem statement better than I did. DTML renders an object by 1. looking it up 2. calling it, if it is callable 3. stringifying the result by calling "str" Thus, for callable objects, changing the "__str__" will not help. For callable objects, "__call__" would need to be modified. However, I would strongly discourage to make such a drastic change to Zope objects: * a modification of "__call__" would not only affect rendering but also other use of objects (e.g. if DTML methods are used to validation and should return "0" or "1". * the pages could be littered with "edit me" buttons. It is (in general) not easy for your content manager to determine the object boundary which the "edit me" applies to. * we use DTML objects sometimes to factor out common "object"s such as e.g. the option list for HTML tags. Automatically adding "edit me" would produce invalid HTML. I would rather suggest, you develop some method (or product), say "content_render", that can render an object (emulation the normal DTML rendering process) and can add whatever is necessary to facilitate management (e.g. visualizing object boundaries, placing "edit me"). Rather than you would then use at places where the result would be usefull and legal (e.g. not inside a "select" tag). Have you looked at the PTK? You will find there some of your idea realized. However in a simplified form: a document contains a single "edit me" integrated to allow the owner to edit his content. Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] cookies don't obey me
Roland Reumerman writes: > 1) When I set a cookie with the path set to the root > Be careful with "cookies"! The value of a cookie it quite severely restricted (must not contain many characters; you read the cookie specification?). In your case, the value is not a string at all but a Zope object. "RESPONSE.setCookie" will probably convert the object to a string for you. This will give you "AUTHENTICATED_USER.getUsername()". However, I would feel better, if this would be in your "setCookie" call. Note, that probably Zope user names may contain characters not allowed in Cookie values. > I'm still not able to click through to another hyperlink once I'm logged in, > i.e., I've used www.ddi.nl/support to go the password protected Zope site, > logged in as a customer, and from there I can choose other parts of the site > (below .../support/). However, www.ddi.nl is an alias of > www.datadistilleries.com (the actual name): as a result it asks me for the > password again. I thought setting the path to '/' would convince Zope I'm > authorized, but apparently it's not the case. The path is a "local" path on your server. Setting "path='/'" tells the browser to add the cookie to any request going to your server. "path='/'" would tell the browser to send it only for requests with paths beginning with "/". You cannot control with "path" to what server the cookie is sent. There is the "domain" specification that gives you some control over the servers that get the cookie. I doubt, however, that this mechanism will allow you to send cookies defined by "www.ddi.nl" also to "www.datadistilleries.com". > 2) This might be related to 1. I've created a logout link on the > /support/index_html page, which looks as follows: > > >"RESPONSE.redirect('http://www.datadistilleries.com/support.html?section=m6&envelope=6')"> > However, once I've been redirected I can still access the password protected > /support/ site without Zope asking me for a login name. There must be some magic, you did not yet tell us about. Usually, setting a cookie has nothing to do with password protection or authentication. There must be something like a "login manager" that ties Zope's security subsystem, login/logout and cookies together. Usually, this "login manager" would do the cookie handling transparently. That you are concerned with the cookie seems to indicate that you implement your own "login manager"? The built in Zope authentication does not use cookies at all but "basic authentication" as defined by HTTP. Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-tree advice, please
Brian Withun writes: > I have two ZClasses. One ("Album") is folderish, and serves as a photo > album. The other ("Photo") isn't and serves as a photo in an Album. Albums > can contain only Albums and Photos. > > I would like to have a dtml-tree represent this hierarchy of Albums and > Photos. > > The Question: > - > > should I use > > > Things to consider: > --- > > I need the branches to represent two different meta types, Album and Photo. > If I use branches_expr="objectValues('Album') I'll see the tree rendered > with only Albums, and no Photos shown. You may try: Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] input type="checkbox" name not pushed to zsql methodnamespace
Francisco =?ISO-8859-1?Q?Jos=E9?= Esteban =?ISO-8859-1?Q?Risue=F1o?= writes: > this is the standard behaviour in a HTML form. To avoid this problem we > include > an line like this: > > > > > > > in the method that receives the form data. Alternatively, you may try a default value in your ZSQL argument list, something like: Arguments: ... Checkbox=0 ... Dieter ___ 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.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Animated GIFs
From: Lars Heber [mailto:[EMAIL PROTECTED]] >Sorry, I think you misunderstood me! >I _don't_ want to stop the gif, but it does after the last frame! -- >Now I tried the same Zope page in NS and IE, this phenomenon appears only with >NS... I did understand you, but I could not replicate your problem in IE. I didn't try it in NS as I don't have it installed. So I would say it most be a Netscape specific problem. - Either it is because NS has some abscure bug if the file doesn't have a .gif name with a dot, but as far as I remember you had allready tried that. - Maybe Zope sends the wrong header that somehow makes NS foul up, but when I send a request like this via telnet: >telnet localhost 8080 >GET /test/ferierejser_banner_50aar.gif HTTP/1.0 I get this response, which looks fine. >>HTTP/1.0 200 OK >>Server: Zope/Zope 2.2.2 (binary release, python 1.5.2, win32-x86) ZServer/1.1b1 >>Date: Tue, 10 Oct 2000 09:20:38 GMT >>Connection: close >>Content-Type: image/gif >>Content-Length: 15341 >>Last-Modified: Tue, 10 Oct 2000 06:40:53 GMT >>GIF89a\?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.zope.org/mailman/listinfo/zope-dev )
[Zope] REQUEST.set size
Hi all, I am new to Zope but worked for 2 years in a dev-env called Uniface so Im fairly up to speed on Zope quickly. But I am having a problem writing data through a REQUEST.set that is larger than its apparent limit. (sorry can remember the exact error i get from Zope) What I am trying to do is collect in a field a large list of emails that are gathered in a dtml-in statement with a REQUEST.set('all', all + email) nested in the loop. While appending the namespace to store the data in PGSQL, i always get the size error which i assume is coming from the publisher saying that a the request can only have a byte size of 1800 bytes or so. Im not so hot with straight SQL because Uniface had its own methods, so Im not sure if I can append data directly to a stored field or if I need to continue trying to use the REQUEST.set. After the hundreth occurence in the IN, the namespace I use to store the appended data, so I cannot fully make a list of 2000 occurences. Any ideas? Sorry, no code to show what Im doing but it should be pretty easy to understand for all you veterans out there... TIA, -- Paz Oratrix Development BV http://www.oratrix.com GRiNS SMIL Editor - ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] Still need help about Product namespace
Hi, I still need help about my product needing to know its namespace... Look at the following piece of DTML Meth/Doc : Right. MyProduct is my product's instance, defining the following method : def __call__ (self, REQUEST=None): if REQUEST is None: if kw: REQUEST=kw else: if hasattr(self, 'REQUEST'): REQUEST=self.REQUEST else: REQUEST={} print STRING This raises a key error. I MUST get the STRING variable from the '_' namespace, but how can I pass IMPLICITLY this namespace to my product ??? Is there a way to acquire _ ??? Many thanks, P.-J. -- If the only tool you have is a hammer, you tend to see every problem as a nail. Si le seul outil dont vous disposez est un marteau, vous avez tendance à voir chaque problème comme un clou. --Abraham Maslow ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] locking help
Hi, Can someone please tell me what is going on. while querying a postgres database i am unable to access any crap from zope. I have tried creating a db connection in a enternal method and querying through that but it still locks and wont serve any requests. a Mark ___ 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.zope.org/mailman/listinfo/zope-dev )
[Zope] zope 2.2.2 not compiling
Hi. I downloaded Zope 2.2.2 source and I am trying to compile it on WinNT to run without pcgi and it fails (console output following this letter). I tried to track down the problem but I don't seem to make any progress. Could You help me please... -- Compiling python modules -- Building extension modules Compiling extensions in lib/python cp D:\Python/lib/python/config/Makefile.pre.in . The name specified is not recognized as an internal or external command, operable program or batch file. Traceback (innermost last): File "D:\Python\Zope-2.2.2\wo_pcgi.py", line 116, in ? if __name__=='__main__': main(sys.argv[0]) File "D:\Python\Zope-2.2.2\wo_pcgi.py", line 104, in main import build_extensions File "D:\Python\Zope-2.2.2\inst\build_extensions.py", line 96, in ? make('lib','python') File "D:\Python\Zope-2.2.2\inst\do.py", line 135, in make do("cp %s ." % wheres_Makefile_pre_in()) File "D:\Python\Zope-2.2.2\inst\do.py", line 104, in do if i and picky: raise SystemError, i SystemError: 1 ___ 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.zope.org/mailman/listinfo/zope-dev )