[Zope-dev] Re: Directory structure on svn.zope.org
--On 25. Dezember 2005 18:48:22 +0100 Philipp von Weitershausen [EMAIL PROTECTED] wrote: Andreas Jung wrote: The top-level directory structure on svn.zope.org appears a bit messy to me. There we have the folders for the large projects CMF, Zope, Zope3 and lots modules that possibly don't belong there. Wouldn't it make sense to move them into a dedicated Zope3-modules folder (or choose another name)? -1 I am fine if this is intended behaviour. As Stephan pointed out there has been a discussion on this issue but I was not aware of that discussion so I asked about it :-) Also, what is Zope-Products? Seems like it's a bag for historical baggage. In that case it can go because that baggage is still in revision history on older release branches... Yes, I will remove this again..it does not make sense Andreas pgpr957xfpc7w.pgp Description: PGP signature ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: [ANN] Zope 2.9.0 beta 2 released
Andreas Jung wrote: --On 26. Dezember 2005 14:49:07 -0500 Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: on behalf of Zope Corporation and the Zope community I am pleased to announce the release of Zope 2.9.0 beta 2 (the x-mas release) Thanks for continuing to do these releases. In this case, I think we jumped the gun, because the Z2 branch left the Zope3 svn:externals set to a non-tagged release of Zope3. We need to get Z3 released *first*, The svn:externals were changed to point to the most current 3.2 version (using -r option). Jim suggested this since I was running out of time before x-mas (and now being on vacation with limited internet access). Yup, it was better to get a 2.9 beta in December based on a specific revision of 3.2 that tro wait until January to get a 2.9 based on a 3.2 beta, especially since the outstanding work for the 3.2 beta would not affect Zope 2. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Curious about age old WebDAV decisions...
I've got a Folder (indirection) and a DTML Method (found) in the root of a Zope site. HEAD requests fail on the indirected DTML Method due to OFS.ObjectManager's __getitem__ method: def __getitem__(self, key): import pdb;pdb.set_trace() v=self._getOb(key, None) if v is not None: return v if hasattr(self, 'REQUEST'): request=self.REQUEST method=request.get('REQUEST_METHOD', 'GET') if request.maybe_webdav_client and not method in ('GET', 'POST'): return NullResource(self, key, request).__of__(self) raise KeyError, key I wasn't around during the development of the WebDAV code, so I'm loathe to just jump in and start changing things, but why isn't 'HEAD' exempted from the NullResource as well, given that HTTP specs state that HEAD *must* return the same headers that a GET would provide (ignoring for the moment the Collector issue thread over whether HEAD should provide the length of the source of a document or its fully rendered content - let's just try to make sure both methods work on the *same object*). What was the reasoning behind the decision? These changes happened way back in the Dark Ages (late March 1999 or so, earlier in the month, this code was added to OFS.Folder with the initial WebDAV support). A trip through the WayBackMachine™ shows no discussion in the Zope-dev lists in early 1999 when this was being worked on, and no real mention of WebDAV in Zope for most of the rest of that year (on Zope-dev or the general Zope list). Am I mistaking this for a problem? ~ [EMAIL PROTECTED] $ curl http://localhost:2277/found hello~ [EMAIL PROTECTED] $ curl http://localhost:2277/indirection/found hello~ [EMAIL PROTECTED] $ curl -I http://localhost:2277/found HTTP/1.1 200 OK Server: Apache Date: Wed, 28 Dec 2005 18:59:58 GMT Last-Modified: Wed, 28 Dec 2005 18:54:07 GMT Accept-Ranges: none Content-Type: text/html Content-Length: 5 ~ [EMAIL PROTECTED] $ curl -I http://localhost:2277/indirection/found HTTP/1.1 404 Not Found Server: Apache Date: Wed, 28 Dec 2005 19:00:10 GMT Bobo-Exception-Line: 63 Content-Length: 891 Bobo-Exception-Value: See the server error log for details Content-Type: text/html Accept-Ranges: none Bobo-Exception-File: NullResource.py Bobo-Exception-Type: NotFound Thanks, Zac ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope] Please help with DTML-in (newbie)
Hello, I am new to Zope and DTML. I am trying to use a python script to call a Z SQL method. The python script also has a list that dtml-in inside the ZSQL method interates over. so my python script: -python script words = ['one', 'two'] context.REQUEST.set('wordlist', wordlist) rs = context.myzsqlmethod() return rs[0,2] -z sql script: SELECT * FROM table WHERE dtml-in words column1 LIKE ('dtml-var "'%'+sequence-item+'%'"' OR column2 LIKE 'dtml-var "'%'+sequence-item+'%'"') dtml-unless sequence-end AND /dtml-unless /dtml-in --- But it doesn't want to, gives me.. Error Type: NameErrorError Value: name 'wordlist' is not defined I tried feeding the variable into the ZSQL arguments list, but i got something like "cannot concatenate a module with a str" Can a nyone please help me? Thank you! Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Please help with DTML-in (newbie)
Alric Aneron wrote: Hello, I am new to Zope and DTML. I am trying to use a python script to call a Z SQL method. The python script also has a list that dtml-in inside the ZSQL method interates over. so my python script: -python script words = ['one', 'two'] context.REQUEST.set('wordlist', wordlist) rs = context.myzsqlmethod() return rs[0,2] -z sql script: SELECT * FROM table WHERE dtml-in words column1 LIKE ('dtml-var '%'+sequence-item+'%'' OR column2 LIKE 'dtml-var '%'+sequence-item+'%'') dtml-unless sequence-end AND /dtml-unless /dtml-in --- But it doesn't want to, gives me.. *Error Type: NameError* *Error Value: name 'wordlist' is not defined *I tried feeding the variable into the ZSQL arguments list, but i got something like cannot concatenate a module with a str Can anyone please help me? Thank you! It complains about 'wordlist' because it is not defined anywhere. Perhaps you mean 'words' in the second line? To pass a param to the ZSQL method, just say:: context.myzsqlmethod(words=words) This will put it in the namespace. --jcc -- Building Websites with Plone http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Please help with DTML-in (newbie)
I am trying to use a python script to call a Z SQL method. The python You need to have defined words as parameter for ZSQL Metod. You have tried to call property wordlist which is not exit. Here are your ZSQL with safety (not functional) concern: params words:string /params SELECT * FROM table WHERE dtml-in words prefix=wrd ( column1 LIKE '%dtml-var wrd_item sql_quote%' OR column2 LIKE '%dtml-var wrd_item sql_quote%' ) dtml-unless sequence-end AND /dtml-unless /dtml-in And here are some functional tips for you: dtml-sqltest dtml-sqlgroup -z sql script: SELECT * FROM table WHERE dtml-in words column1 LIKE ('dtml-var '%'+sequence-item+'%'' OR column2 LIKE 'dtml-var '%'+sequence-item+'%'') dtml-unless sequence- end AND /dtml-unless /dtml-in Nice example for easy SQL injection! ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Please help with DTML-in (newbie)
J Cameron Cooper schrieb: Alric Aneron wrote: Hello, I am new to Zope and DTML. I am trying to use a python script to call a Z SQL method. The python script also has a list that dtml-in inside the ZSQL method interates over. so my python script: -python script words = ['one', 'two'] context.REQUEST.set('wordlist', wordlist) rs = context.myzsqlmethod() return rs[0,2] -z sql script: SELECT * FROM table WHERE dtml-in words column1 LIKE ('dtml-var '%'+sequence-item+'%'' OR column2 LIKE 'dtml-var '%'+sequence-item+'%'') dtml-unless sequence-end AND /dtml-unless /dtml-in And dont use dtml-var in ZSQL Methods. In your example, use dtml-sqlvar sequence-item type=string instead. Even if you hardcode the wordlist, but even more if its coming from request somewhere. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] mxODBC config probs for MSSQL
This is an issue regarding the egenix mxODBC drivers for Zope to communicate with MSSQL.Iam having problems configuring th emxODBC on Zope.Iam not being successfull in creating a connection to SQL server.The error iam getting is: EGENIX .COM mxODBC Zope DA Problem connecting to the database Connection string: Driver=SQL ServerConnection pool entry: 0Error message: ('IM003', 0, '[iODBC][Driver Manager]Specified driver could not be loaded', 8222) Any kind of help is appreciated.Thank you,Suhas ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] mxODBC config probs for MSSQL
Rob, is the connection outside of Zope running. Can you connect to the SQL Server using Isql or a similar command line tool? Robert Rob Jingle wrote: This is an issue regarding the egenix mxODBC drivers for Zope to communicate with MSSQL.Iam having problems configuring th emxODBC on Zope.Iam not being successfull in creating a connection to SQL server. The error iam getting is: *EGENIX .COM mxODBC Zope DA* Problem connecting to the database Connection string: Driver=SQL Server Connection pool entry: 0 Error message: ('IM003', 0, '[iODBC][Driver Manager]Specified driver could not be loaded', 8222) Any kind of help is appreciated. Thank you, Suhas ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] python build errors
I installed python 2.3.5 in order to keep my zope happy. However, make test yeilded some unexpected errors: 1 test failed: test_zipimport 35 tests skipped: test_aepack test_al test_audioop test_bsddb test_bsddb185 test_bsddb3 test_cd test_cl test_crypt test_curses test_dbm test_dl test_email_codecs test_gdbm test_gl test_imageop test_imgfile test_linuxaudiodev test_macfs test_macostools test_mpz test_nis test_normalization test_ossaudiodev test_pep277 test_plistlib test_rgbimg test_scriptpackages test_socket_ssl test_socketserver test_sunaudiodev test_timeout test_urllibnet test_winreg test_winsound 8 skips unexpected on linux2: test_dbm test_crypt test_gdbm test_rgbimg test_bsddb test_mpz test_audioop test_imageop make: *** [test] Error 1 I don't know why these would have failed. Would these failures be a problem for zope?-- David BearWhat's the difference between private knowledge and public knowledge? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Leave the ivory tower now!
On 12/27/05, Michael Haubenwallner [EMAIL PROTECTED] wrote: Andrew Sawyers wrote: On Sun, 2005-12-25 at 10:03 +0800, Bakhtiar A Hamid wrote:The 'closed group' dissolved a while ago.that's sad(?)anything came out of the group?i think we need to do to zope.org what we did to zope2.ignore and build.leave it asold.zope.org and link from the new site. That was the plan.I'd like to revive the plan.:)Volunteers? AndrewCount me inMichael me three. i;ll try and find time. and also find where i can help --http://zope.org/Members/d2m http://planetzope.org___Zope maillist-Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!**(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )-- http://myzope.kedai.com.my - my-zope org ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] DateTime().Time() gets Insufficient Privileges error, why?
I am trying to get the latest time in a Python Script. I declare: from DateTime.DateTime import DateTime But when I run: t = DateTime().latestTime() or t = DateTime().Time() I always get an Insufficient Privileges error. I have combed through the archives and the web and as far as I can tell this should work. What am I doing wrong? Thanks! Jamie ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope-DB] can not show more than 20 records
Hello, I need help using Z MySql with zope 2.7.5-final. If I would like to show more than 20 records with the select command, zope shows the following error message. KeyError: 'query' Traceback (innermost last): Module ZPublisher.Publish, line 101, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Shared.DC.ZRDB.DA, line 337, in manage_test Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_In, line 602, in renderwb Module DocumentTemplate.DT_Var, line 219, in render Connection Hook Maximum rows to retrieve are set to 5000 Maximum results to cache are set to 1000 Maximum time (sec) to cacheare set to 5 Thanks for any help. Roman Page Mail.: [EMAIL PROTECTED] ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db