Re: [Zope] 'Offline' mailhost
Chris Withers wrote: Shane Hathaway wrote: I'm not sure how well MailHost scales, but you can certainly store thousands of names in a ZODB-managed list. Tests done for the BTreeFolder product prove it. Sadly, I think MailHost doesn't scale too well :-( What it'd need to do if you're sending the mail to a few thousand people is to be non-blocking. IIRC, currently, a method/page with a dtml-in addressessendmail/dtml-in tag pair in it will only return when the mail has been sent to all the recipients. So, if the mails going to lots of people, the page takes ages to return. Perhaps it would be better to solve this by configuring your sendmail (or other SMTP MTA) to be non-blocking, i.e. store-and-forward. Also you could send just one message to all the recipients instead of sending individual messages. This is the problem I had where our mail server was taking lots of time to send messages (it was doing lots of stuff to make sure the address was valid) so submitting posts on Squishdot.org was taking ages too. What, IMHO, is really needed is a mailhost/sendmail tag type thing that gets a message and a list of addresses to send it to. If it could do that in a seperate thread/process/whatever so that whatever calls it doesn't block, that'd be great. Of course, it'd need to have a 'hook back' method provided so any errors that occured could be dealt with. I wonder how mailman does this stuff and if the code could be borrowed for Zope? Maybe you could just use mailman as MTA, greating temporary mailing-lists. Hannu ___ 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] A temporary python object defined in a dtml-let tag ???
Hi all, I wonder if it's possible to create temporary a python object in a dtml-let tag. If someone knows more about how to do this, please, help me... Thanks Fred Quin ___ 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] SiteRoot
I have a problem with SiteAccess: My site runs with Apache and Zope 2.0.0. Apache has 2 Domains: www.domain1.com ProxyPass to Zope: http://123.123.123.123:8080/provider/www/domain1.com/ in Zope exists: /provider/www/domain1.com www.domain2.com ProxyPass to Zope: http://123.123.123.123:8080/provider/www/domain2.com/ in Zope exists: /provider/www/domain2.com In both subdirectories (domain1.com and domain2.com) exist the SiteRoot method. In the SiteRoot method is written: Title: www.domain1.com Base: http://www.domain1.com Path: / When I point my Browser to www.domain1.com everything works ok. Now I create /provider/www/domain2.com OK I create the acl_user domain2.com with a password. OK I create a SiteRoot: Title: www.domain2.com Base: http://www.domain2.com path: / OK I restart Zope and Apache OK Now when I point my Browser to www.domain2.com I get the Website of www.domain1.com. I go to http://www.domain2.com/manage and get the folder: /provider/www/domain1.com instead of /provider/www/domain2.com When I log in as domain1.com I get the folder /provider/www/domain1.com and everything works ok. But I can go up to the folder /provider/www and see what else is in this folder. But domain1.com has no access to this folder, i.e. there is no acl_user in this folder. What goes wrong? I already tried to upgrade to 2.2.1 and 2.2.2 but this destroys the data structure. Any suggestions? TIA -goe- _ 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] DCOracle 1.3.2 for Windows NT
Hello, I 'm looking for oci driver (DCOracle 1.3.2) to Windows NT platform, I have heard that someone in this community buit DCOracle for NT and I wonder if you can help me. I would be gratefull if you could send me a makefile to this platform or a comliled file (*.pyd). I have Oracle 8i 8.1.6 . Please send me some information for my adress [EMAIL PROTECTED] Thank you for your attention. ___ 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] Last-modified header missing -- time-stamps turned off.
Hi all Just a note from the blue .. I'm snarfing the ZB using wget -np -m http://www.zope.org/Members/michel/ZB/ and for every document I'm seeing: Last-modified header missing -- time-stamps turned off. What's the significance of this? I assume something to do with the http headers returned by Zope. Does Zope not include last-modified headers since it predominantly serves dynamic pages? Regards, -- Jean Jordaan --technical writer-- Mosaic Software--Zope 2.2 on WinNT and W2K ___ 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] DCOracle 1.3.2 for Windows NT
I'm not tried it yet, but you can get an VC6 Workspace for DCOracle in this page: http://starship.python.net/crew/arpadk/ Marcin Dzienniak escribió: Hello, I 'm looking for oci driver (DCOracle 1.3.2) to Windows NT platform, I have heard that someone in this community buit DCOracle for NT and I wonder if you can help me. I would be gratefull if you could send me a makefile to this platform or a comliled file (*.pyd). I have Oracle 8i 8.1.6 . Please send me some information for my adress [EMAIL PROTECTED] Thank you for your attention. ___ 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] database connection problem (halting Zope)
thanks again, yes, the python versions I use are compiled for threads, they link against libpthread under linux. I have also found ZmxODBCDA adapter and it does not work for me yet - it shows in Zope as broken product. I also spoke to local Oracle hotline and they said that ODBC access is not thread safe until 8.1.6.1.1 due to some error in OCI libs. Now I am downloading Oracle for Linux and Sybase for Linux and I will try to compile OracleDA and SybaseDA. Thanks a lot all. Regards, Petr -Original Message- From: Dieter Maurer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 03, 2000 11:17 PM To: Hrasky Petr Cc: '[EMAIL PROTECTED]' Subject: RE: [Zope] database connection problem (halting Zope) Hrasky Petr writes: thank you for answers. To clarify: I run Zope-2.2.2/Linux2.2.14/MySQL-ZMySQLDA1.1.3nonbin at home and Zope-2.2.2-binary/NT4.0Workstation/ZODBCDA3.1.0b2 (Oracle 8i ODBC, Sybase11.5)at work. Oracle connection at work and MySQL (at home just for testing) run looong queries and halt Zope. I have no such queries for Sybase yet. I will try to recompile python for linux, but I can't do so for WinNT as I have no compiler. Anyway I thought the python distributed with binary release of Zope is threaded, no? If Python is compiled without threads, there is no module "thread". Zope relies on this module. It dies immediately, if it is not there. Thus, you can be sure, your Python has thread support compiled in. So, does anybody know of either binary and threaded Zope driver for Oracle , Sybase etc. or the same ODBC driver? And what is the state of python threading on WinNT paltform? The Python that comes with Zope has thread support compiled in. Maybe, your Python-ODBC connection "forgets" to release Python's interpreter lock. We, once, had such a problem. Accidentally, the DCOracle module had been set up with a standard Python distribution (with threading disabled) rather than the Zope Python. As a consequence, the DCOracle did not call "releaseLock" and "acquireLock" (as they would not be present in a non-threaded Python). And, of course, database operations blocked Zope. 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 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 problems
Is it possible, that you upgraded from an earlier Zope installation? The traceback suggests that your requests tries to access the object "broken", probably an object from a broken product. Thanks, I've found the problem: It was a broken ZPatterns. I've updated to 0.4.2a3, but left an "old" compiled Dynpersist.so in the directory (V 0.3). After updating this, everything was fine. I guess I just have to be prepared to get the weirdest sstuff to see as long as I 1.) use alpha/beta products to authenticate my users on root level, and 2.) keep refusing to wear glasses (Actually, this beta ZPatterns is fine). Thanks, Prost, Danny -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Dieter Maurer Gesendet: Dienstag, 3. Oktober 2000 22:57 An: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Betreff: Re: [Zope] Access problems Danny William Adair writes: I have a serious and extremely urgent problem concerning my zope installation (2.2.1 on Unix): Whatever resource I'm trying to access, I get the following . File /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/BaseRequest.py, line 514, in old_validation (Object: broken) AttributeError: (see above) Is it possible, that you upgraded from an earlier Zope installation? The traceback suggests that your requests tries to access the object "broken", probably an object from a broken product. I suggest, you start Zope with "STUPID_LOG_FILE=zope.log". This should log problems during Zope startup to "zope.log" (you may need to upgrade to Zope 2.2.2, as earlier Zope versions lost one exception log due to a missing "flush"). If you see no problems logged, try to go to "Control_panel/ProductManagement" and check whether there are broken products. 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 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 problem with the dtml-sendmail and the smtphost
I have a dtml method in a zClass that looks like this: dtml-sendmail smtphost=theSMTPHost To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: This is a test A test!!! /dtml-sendmail "theSMTPHost" is defined as a property in the zClass. But when i use the method I get a: Error Type: error Error Value: host not found If i write: dtml-sendmail smtphost="mail.tele.dk" It gets send without a hitch. and if I write dtml-var theSMTPHost it returns mail.tele.dk as expected. I then try this, which also fails. dtml-call "REQUEST.set('theSMTPHost', 'mail.tele.dk')" Mailhost: dtml-var theSMTPHost dtml-sendmail smtphost=theSMTPHost To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: This is a test A test!!! /dtml-sendmail Is it not possible to set the smtphost to a string in a dtml variabel? Regards Max M ___ 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] Integers in ZSQLMethod
Hi, Is it possible to use following code in ZSQLMethod : !--#sqlvar NMRSEQS.PAR_FLIPANGLE type=int --, But also allow null as value for the integer? (Thus not filled in) Thanks in advance, Tom. ___ 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] Integers in ZSQLMethod
On Wed, 04 Oct 2000, you wrote: Hi, Is it possible to use following code in ZSQLMethod : !--#sqlvar NMRSEQS.PAR_FLIPANGLE type=int --, But also allow null as value for the integer? (Thus not filled in) use !--#sqlvar NMRSEQS.PAR_FLIPANGLE type=int optional-- or the newer syntax dtml-sqlvar MRSEQS.PAR_FLIPANGLE type=int optional Ralph -- Ralph Heinkel Cenix Bioscience GmbH Director of the IT-UnitTel : +49 6221/387 915 Meyerhofstr. 1 Fax : +49 6221/387 971 69117 Heidelberg, Germany 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 )
Re: [Zope] Integers in ZSQLMethod
Argh, dumb me. That I didn't think of this myself. Boy, do I feel myself stupid and red. Tom. At 15:12 04/10/2000 +0200, Ralph Heinkel wrote: On Wed, 04 Oct 2000, you wrote: Hi, Is it possible to use following code in ZSQLMethod : !--#sqlvar NMRSEQS.PAR_FLIPANGLE type=int --, But also allow null as value for the integer? (Thus not filled in) use !--#sqlvar NMRSEQS.PAR_FLIPANGLE type=int optional-- or the newer syntax dtml-sqlvar MRSEQS.PAR_FLIPANGLE type=int optional Ralph -- Ralph Heinkel Cenix Bioscience GmbH Director of the IT-UnitTel : +49 6221/387 915 Meyerhofstr. 1 Fax : +49 6221/387 971 69117 Heidelberg, Germany 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 )
Re: [Zope] DCOracle 1.3.2 for Windows NT
Marcin Dzienniak wrote: I 'm looking for oci driver (DCOracle 1.3.2) to Windows NT platform, I have heard that someone in this community buit DCOracle for NT and I wonder if you can help me. I would be gratefull if you could send me a makefile to this platform or a comliled file (*.pyd). I have Oracle 8i 8.1.6 . I had compiled DCOracle 1.3.1 b1 libraries as .dll's a while back on WinNT4.0 against Oracle 8.1.6.0 and they worked fine for me until we moved onto Linux. I've attached it hoping it works for you (and maybe others). Ayhan Ergul [EMAIL PROTECTED] DCOracle-1.3.1b1-compiled.zip
Re: [Zope] 'Offline' mailhost
Hannu Krosing wrote: Perhaps it would be better to solve this by configuring your sendmail (or other SMTP MTA) to be non-blocking, i.e. store-and-forward. Can you tell me how to set that up with exim? Also you could send just one message to all the recipients instead of sending individual messages. Urm, they could be pretty unfriendly mail messages if they're being sent to a coupla thousand people. The bandwidth dcoming out of your server alone would be far higher than it needed to be :-( I wonder how mailman does this stuff and if the code could be borrowed for Zope? Maybe you could just use mailman as MTA, greating temporary mailing-lists. Any how-to's for this or how hard it would be to set up? 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] dunno
Fred Yankowski wrote: Version 0-7-2 of Squishdot seems to use the url_quote option when accessing the value of admin_address in particular, so when a DTML page has code like !--#var admin_address url_quote-- Where does this code occur? (all occurences please ;-) and admin_address is a property with the value "[EMAIL PROTECTED]", the resulting HTML code is foo%40bar.com which doesn't work correctly, particularly when used as the value of a 'mailto:' URL. How odd... Where have you got a mailto: URL? I've never had problem with this. What evrsion of Zoep are you using? So what's the solution? Is Squishdot wrong to use url_quote this way? Dunno... Why is url_quote hiding the "@" anyway -- I don't see any reason for escaping it this way. Dunno... Anyone with clues, please give me one :-) 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] Detecting Roles not working
Jonathan Cheyne wrote: Hi all I have built the basis of a site with full, form-based webediting of objects. Coming round to cleanup time and I wanted to remove certain visible functions from the default object views unless you have already logged in (with various possible roles) in the index_html of my zclass i have dtml-if "AUTHENTICATED_USER.has_role('Staff')" a href="dtml-var absolute_url/dtml-var typeedit"edit this/ahr /dtml-if so if the user is anonymous or logged in without the Staff role assigne they should not see the "edit this" link ... Doesn't work! It basically never returns a 'true' response thus never displays the edit this link even when logged in. try (untested) dtml-if "AUTHENTICATED_USER.has_role('Staff')==1" or (tested) dtml-if "'Staff' in AUTHENTICATED_USER.getRoles()" Cheers Kapil ___ 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] Implementing a distributing mirror
Hi, I would like to implement a system to distribute PDF document. I would like to use ZOPE on 5 server distributed in Europe. I would like to build a system that send an email to a paying user where I put an URL. I would like that in URL I send temporary authentication information to allow access to a virtual directory where I put only documents or images files that user purchased. Have you any hints on how implement this architecture? Thank you in advance, Luciano Caroti. ___ 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! dtml-if question
Hi, I've tried to find a solution myself but now am stuck. I created a little "Blurb" product for a university department website so that faculty members can announce recent publications on the department's homepage. They create these ZClass instances in their own folders, and a DTML method in the top-level folder grabs and displays them at random. (I want to avoid using ZCatalog for the time being.) What the method does is randomly choose a faculty folder, and then randomly choose a Blurb instance within that folder. Here's the hack I came up with: dtml-with Dept dtml-with Fac dtml-with Sites dtml-with "_.whrandom.choice(objectValues(['Folder']))" dtml-with "_.whrandom.choice(objectValues(['Blurb']))" dtml-var index_html (end tags omitted) The problem is that this method will produce an Index Error when it comes across a folder that doesn't contain an instance of "Blurb" class. So I need to make the selection of a folder conditional on Zope's finding a Blurb in that folder. Here's what I tried after reading up: dtml-with Dept dtml-with Fac dtml-with Sites dtml-with "_.whrandom.choice(objectValues(['Folder']))" dtml-if "_.has_key('Blurb')" dtml-with "_.whrandom.choice(objectValues(['Blurb']))" dtml-var index_html /dtml-with dtml-else Some default Blurb would appear. This method fails. Can someone help? Cheers, Anthony Anthony Brietz Monta Coordinator of Curricular Assessment Academic Reporting Louisiana Board of Regents 150 Third Street, Suite 129 Baton Rouge, LA 70801-1389 225.342.4253, ext. 143 [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] 'Offline' mailhost
On Wed, 4 Oct 2000, Hannu Krosing wrote: Perhaps it would be better to solve this by configuring your sendmail (or other SMTP MTA) to be non-blocking, i.e. store-and-forward. This seems like a good idea. It makes it hard to get disposition status for the delivery in the transaction - but that problem is intrinsic to email communications, and probably best addressed by using the "sender" header (i think it is), so delivery failure notifications go to someone who needs to know about the failure. Even better - but lots more complicated: have the failure notifications directed to a program which queues the fact of the failure for the sending program to use. I haven't used it, but contemporary MTAs have catchall aliases, by which you can handle a pattern of recipients. Have the envelope sender fit the pattern, and encode the information about the program that needs to get back the failure information. I think this kind of architecture is necessary for comprehensive mail sending from zope, with delivery failure accounting, since mail sending is inherently asynchronous. Maybe you could just use mailman as MTA, greating temporary mailing-lists. This is also a good idea in principle, but would wind up being cumbersome. Mailling list "objects" are heavy weight components in mailman - each one having a list metadata and archive directory, mta aliases, etc. Plus, you may have to leave the list up until the last delivery is completed (successful or not). Better, i think, to adopt techniques and steal code from mailman, to take the pieces you want. Ultimately, i don't think you'd be taking that much - there's a lot in python that gets you a lot of the way. It's the embedded knowledge that's useful... -- Ken [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-dev] cookies ie5.5 win
hi! config: zope 2.1.6 under red hat with customized UserDB. i'm having a strange problem with cookie based user authentication with ms internet explorer 5.5 on windows. it seems that the browser (but only this version and only under windows!) seems to "forget" its cookies, which results in an immediate logout. does anybody have similar experiences or a even solution? any help would be appreciated. ciao, basti -- sebastian f. luehnsdorf beehive elektronische medien gmbh -- http://basti.beehive.de http://www.beehive.de mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.zope.de fon: (+49 30) 84 78 20 http://www.i-surf.defax: (+49 30) 84 78 22 99 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] IMAP and Zope!
Thanks for the input I got! Just a small wrap-up of what I learned: - The NotMail and old IMAP Adapter code don't seem to be seriously used by anybody - WorldPilot could be a solution, but it only if it was more modular. Ryan Hughes promised to integrate it into Zope by release 2 (incl. a ZODB-based document storage - There is a similar project by Morten W. Petersen that also will feature a ZODB-based message storage that will be searchable, Catalog-aware etc. Joachim. -- 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 --- -- 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] 'Offline' mailhost
Techniques for effeciently sending a message to a large number of recipients are covered extensively in majordomo documentation - www.greatcircle.com/majordomo. Also check out ftp://cs.utk.edu/pub/moore/bulk_mailer Bill. On Wed, 4 Oct 2000, Chris Withers wrote: Also you could send just one message to all the recipients instead of sending individual messages. Urm, they could be pretty unfriendly mail messages if they're being sent to a coupla thousand people. The bandwidth dcoming out of your server alone would be far higher than it needed to be :-( ___ 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] Detecting Roles not working
dtml-if "AUTHENTICATED_USER.has_role('Staff', this())" This works for me, no pun intended :) Dan Kapil Thangavelu wrote: Jonathan Cheyne wrote: Hi all I have built the basis of a site with full, form-based webediting of objects. Coming round to cleanup time and I wanted to remove certain visible functions from the default object views unless you have already logged in (with various possible roles) in the index_html of my zclass i have dtml-if "AUTHENTICATED_USER.has_role('Staff')" a href="dtml-var absolute_url/dtml-var typeedit"edit this/ahr /dtml-if so if the user is anonymous or logged in without the Staff role assigne they should not see the "edit this" link ... Doesn't work! It basically never returns a 'true' response thus never displays the edit this link even when logged in. try (untested) dtml-if "AUTHENTICATED_USER.has_role('Staff')==1" or (tested) dtml-if "'Staff' in AUTHENTICATED_USER.getRoles()" Cheers Kapil ___ 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! dtml-if question
Hi, Anthony how about: dtml-if "_.len(objectValues(['Blurb'])) 0" Your _.has_key() (I think you meant _.hasattr()) statement was looking for something named "Blurb", not a thing of type"Blurb", so of course it failed. The objectValues(['atype']) statement returns a list of the things of the type, so checking for a non-zero length of the list will do what you need. -- Jim Washington Dr. Anthony Monta wrote: Hi, I've tried to find a solution myself but now am stuck. I created a little "Blurb" product for a university department website so that faculty members can announce recent publications on the department's homepage. They create these ZClass instances in their own folders, and a DTML method in the top-level folder grabs and displays them at random. (I want to avoid using ZCatalog for the time being.) What the method does is randomly choose a faculty folder, and then randomly choose a Blurb instance within that folder. Here's the hack I came up with: dtml-with Dept dtml-with Fac dtml-with Sites dtml-with "_.whrandom.choice(objectValues(['Folder']))" dtml-with "_.whrandom.choice(objectValues(['Blurb']))" dtml-var index_html (end tags omitted) The problem is that this method will produce an Index Error when it comes across a folder that doesn't contain an instance of "Blurb" class. So I need to make the selection of a folder conditional on Zope's finding a Blurb in that folder. Here's what I tried after reading up: dtml-with Dept dtml-with Fac dtml-with Sites dtml-with "_.whrandom.choice(objectValues(['Folder']))" dtml-if "_.has_key('Blurb')" dtml-with "_.whrandom.choice(objectValues(['Blurb']))" dtml-var index_html /dtml-with dtml-else Some default Blurb would appear. This method fails. Can someone help? ___ 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] IMAP and Zope!
[Joachim Werner] | - There is a similar project by Morten W. Petersen that also will feature a |ZODB-based message storage that will be searchable, Catalog-aware etc. I've uploaded some stuff now. Take a look at http://www.zope.org/Members/morphex . This is basically just playing around; no ZOPE specific stuff yet. Regards, Morten ___ 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: [Zope-dev] DynPersist.so from ZPatterns 0-4-2a3
You can build one yourself on that server. Thanks, I've built one. :-) ___ 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] Client.py and timeouts
I recently used Client.py to get data from the web into the zope machinery, the setup was exactly as proposed in the ZClient How-To. Maybe I missed something, but the Client module seems to support the setting of an timeout, but I was unable to finger out the right syntax I thought of: web_client(url='http://someserver.com', timeout=60) or some variants of it. (or it doesnt work at all for some other reasons.) Any help would be appreciated.. 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 )
[Zope] zope.org restarting
Zopatistas, we're tracking down a memory leak. Thanks for your patience, ~ethan ___ 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] Wierd 2.2.2 start up problem
I have installed 2.2.2 on more than a few machines on my fifth machine I got this after doing the install. 2000-10-04T19:54:35 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\000\000\000\003' Traceback (innermost last): File /usr/local/Zope-2.2.2-linux2-x86/lib/python/ZODB/Connection.py, line 446, in setstate ImportError: No module named Document I have tried wiping it away and trying again like three times. Anyone know what this? Why it is not happening in installs. All RH Linux. 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] Detecting Roles not working
Stolen somewhere from this list, and I don't remember from who. dtml-if "AUTHENTICATED_USER.has_permission('Edit', this())" ...is cool to have as well if you ever need it. Let's you not use specific names of ACL's such as "Staff" or "CopyWriter". dtml-if "AUTHENTICATED_USER.has_role('Staff', this())" This works for me, no pun intended :) Dan Kapil Thangavelu wrote: Jonathan Cheyne wrote: Hi all I have built the basis of a site with full, form-based webediting of objects. Coming round to cleanup time and I wanted to remove certain visible functions from the default object views unless you have already logged in (with various possible roles) in the index_html of my zclass i have dtml-if "AUTHENTICATED_USER.has_role('Staff')" a href="dtml-var absolute_url/dtml-var typeedit"edit this/ahr /dtml-if so if the user is anonymous or logged in without the Staff role assigne they should not see the "edit this" link ... Doesn't work! It basically never returns a 'true' response thus never displays the edit this link even when logged in. try (untested) dtml-if "AUTHENTICATED_USER.has_role('Staff')==1" or (tested) dtml-if "'Staff' in AUTHENTICATED_USER.getRoles()" Cheers Kapil ___ 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] timecards@digicool.com
Sorry for the tardiness. Shane 2917.xls 2924.xls
Re: [Zope] timecards@digicool.com
Shane Hathaway wrote: Sorry for the tardiness. Uh, ahem, please disregard. Sorry for sending that to the wrong place. Shane ___ 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] 'Offline' mailhost
Chris Withers wrote: Hannu Krosing wrote: Perhaps it would be better to solve this by configuring your sendmail (or other SMTP MTA) to be non-blocking, i.e. store-and-forward. Can you tell me how to set that up with exim? Also you could send just one message to all the recipients instead of sending individual messages. Urm, they could be pretty unfriendly mail messages if they're being sent to a coupla thousand people. The bandwidth dcoming out of your server alone would be far higher than it needed to be :-( How would the bandwidth change?? I wonder how mailman does this stuff and if the code could be borrowed for Zope? Maybe you could just use mailman as MTA, greating temporary mailing-lists. Any how-to's for this or how hard it would be to set up? 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 ) -- - Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions http://www.adroit.net/ 03 9563 4461 0414 708 124 ___ 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] external method import error (ImportError)...
Hi, To summarize: How do I import modules in an External Method's .py file? I have an external method that points to a .py file that has an import statement at the top. The import statement loads another module of mine (CProject.py). I've placed both files (pwToxml.py and CProject.py) in the Zope/Extensions directory. When I try to create an external method on the pTox.py file with the following parameters: ID = pTox Function Name = pTox Python Module File = pwToxml I get the following error: Error Type: ImportError Error Value: No module named CProject Traceback (innermost last): File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addExternalMethod) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addExternalMethod) File /usr/local/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 130, in manage_addExternalMethod File /usr/local/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 178, in __init__ (Object: pTox) File /usr/local/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 201, in manage_edit (Object: pTox) File /usr/local/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 210, in getFunction (Object: pTox) File /usr/local/Zope/lib/python/App/Extensions.py, line 217, in getObject (Info: ('/usr/local/Zope/Extensions/pwToxml.py', 'pwToxml')) File /usr/local/Zope/Extensions/pwToxml.py, line 1, in ? ImportError: (see above) I checked the sys.path for my Python installation and placed the CProject.py file there, but I still get the same error. Here's the top of my pwToxml.py file: import CProject, string def pTox(self, REQUEST): """Function to map pw to CProject Objects""" P=CProject.CProject() dictData = REQUEST.form.items() strTemp = "" strError = "Error Retrieving Dictionary Value" ...etc... Thanks for any help you can provide. ___ 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] 'websafe' colours
On Wed, 04 Oct 2000, Stephan Goeldi wrote: According to a recent study, there are approximately 13 'web safe' colours, out of the full 16,777,216. What makes the other 15,777,203 'unsafe'? If you mean the 'browsersafe colours' then there are 218. Yes, my mistake. I did mean 'browser safe'. I was aware of the previous belief of 216 (mostly because of 256 colour modes less 40 system colours), but as I stated, a recent study has "dispelled the myth", claiming (and now I correct myself :) only 22 browser safe colours. http://slashdot.org/articles/00/09/08/1622204.shtml has some more details, and a link to the actual article. The only other possible reason I can recall is that some of the 'named' colours are not supported by all browsers, or are not interpreted the same. No, the problem is, that they are not displayed the same. Not long after posting my message I realised this also. (o8 -goe- Have a better one, Curtis Maloney ___ 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 stalls indefinitely
"Leichtman, David J" wrote: Thought we had a problem of ours fixed, but here it is once again, a month later. Zope, every once in a while, will just stall indefinitely. The Zope process doesn't die, it just hangs. Any thoughts. I've posed this question to a lot of people many times. Now that it's back, I'm hoping for fresh insight. hm. have you been using -M to see which things are being called when it hangs? ~ethan ___ 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] Last-modified header missing -- time-stamps turned off.
Jean Jordaan wrote: Hi all Just a note from the blue .. I'm snarfing the ZB using wget -np -m http://www.zope.org/Members/michel/ZB/ and for every document I'm seeing: Last-modified header missing -- time-stamps turned off. What's the significance of this? I assume something to do with the http headers returned by Zope. Does Zope not include last-modified headers since it predominantly serves dynamic pages? This is correct. No Last-Modified headers except for files and images (and that is specific to zope.org). Including a last modified header isn't hard, however: http://www.zope.org/Members/rbeer/caching ~ethan ___ 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] WDDX anyone?
Has anyone considered WDDX for Zope? This seems like a nice next step to exchanging data beyond RSS, but not as ambitious as SOAP and has SDKs for CF, perl, etc. I have some applications in mind for intranet syndication that goes beyond what RSS can do. Also there is full rdf. From: http://www.wddx.org/ Welcome to WDDX.ORG, the home of the WDDX SDK and related projects. WDDX.ORG seeks to empower Web developers with technology that enables them to create new forms of value on the Internet using distributed data and Web syndicate networks. The Web Distributed Data Exchange, or WDDX, is a free, open XML-based technology that allows Web applications created with any platform to easily exchange data with one another over the Web. To learn more about WDDX, check out the Understanding WDDX section of the site. Who created WDDX? Allaire created WDDX in order to solve key problems in exchanging data between Web applications. In particular, Simeon Simeonov, Allaire's language technology architect, created WDDX to support problems of distributed computing within ColdFusion. This work was generalized into a cross-language framework, and resulted in the creation of the WDDX SDK and WDDX.org. The WDDX SDK was created by Nate Weiss, an independent Web developer, with the support of Allaire and a number of other third parties. How does WDDX work? All of the standard programming environments on the Web (ColdFusion, Perl, ASP, Java, JavaScript, PHP, etc) include native data structures such as arrays, record sets or value pairs. WDDX provides a module for each language that will automatically serialize or translate the native data structures into an abstract representation in XML, or deserialize WDDX XML into a native data structure. For example, you could use WDDX to take a complex array in ColdFusion, serialize it into XML, send it to an ASP server, and then deserialize from XML into a VBScript array object with all the types natively converted. This conversion process between languages is relatively transparent to developers by shifting any XML processing and interaction into the WDDX modules, eliminating developers from having to directly program or manipulate XML themselves, This is not an RMI mechanism. Regards, Albert Boulanger [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] Product Testing
HI, i'm trying to learn how to make products, i have been able to modify the poll product that comes with the product tutorial, and now i'm creating a new product however i need to restart zope for the changes to take effect, i think i can omit this if i can compile (generate the *.pyc) in the product directory, can anybody send me a few bits of how can i made that? thanks, -- Nestor A. Diaz Ingeniero de Desarrollo Engendro.com - Comercio Electronico sobre Linux Email: [EMAIL PROTECTED] - WWW: http://www.engendro.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] Hotfix_2000-10-02 - fails with GUF and zope 2.2.2
When I have the 2000-10-02 hotfix installed I can no longer authenticate to zope. I fails with the attached message (Error Type: AttributeError, Error Value: editabsolute_url). I am guessing the problem is related to the fact that I am using GUF 1.2.4 (patched to have the getUserById() method). Any ideas? Martin [EMAIL PROTECTED] zope.err
[Zope] Fw: ZSQL Methods in ZClasses, not working
Just wanted to get this point archived... Thanks Michel. Forwarded by Alexander Schonfeld [EMAIL PROTECTED] Original message follows From: Michel Pelletier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: " \(DC Support List\)" [EMAIL PROTECTED] Date: Mon, 02 Oct 2000 13:41:25 -0700 Subject: Re: [Support] [ZOPE Collector] Z SQL Methods Bug entry: ZSQL Methods in ZClasses, not working -- [EMAIL PROTECTED] wrote: A new bug entry was added with the following information: Title: ZSQL Methods in ZClasses, not working At: http://classic.zope.org:8080/Collector/Collector/1664/sview Submitter: Alex Email: [EMAIL PROTECTED] Description: Adding a ZSQL method to a ZClass and trying to access it from a method in that class gives permission denied and no matter what the password, denies access. You need to select *Use Database Methods* on your ZClasses *Permissions* view, and then select each ZSQL method you create and map *Use Database Methods* to *Use Database Methods*. I haven't really groked why it's that hard, but it works. -Michel ___ 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] WDDX anyone?
Albert Boulanger wrote: Has anyone considered WDDX for Zope? This seems like a nice next step to exchanging data beyond RSS, but not as ambitious as SOAP and has SDKs for CF, perl, etc. I have some applications in mind for intranet syndication that goes beyond what RSS can do. Also there is full rdf. From: http://www.wddx.org/ SNIP WDDX provides a module for each language that will automatically serialize or translate the native data structures into an abstract representation in XML, or deserialize WDDX XML into a native data structure. For example, you could use WDDX to take a complex array in ColdFusion, serialize it into XML, send it to an ASP server, and then deserialize from XML into a VBScript array object with all the types natively converted. This conversion process between languages is relatively transparent to developers by shifting any XML processing and interaction into the WDDX modules, eliminating developers from having to directly program or manipulate XML themselves, This is not an RMI mechanism. So what about this couldn't be emulated with xml-rpc? Curious, Kapil ___ 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] WDDX anyone?
So what about this couldn't be emulated with xml-rpc? Curious, Kapil True.. But, well, its the other end. The SDK available at www.wddx.org is a path towards exchanging data with other well known systems such as ASP and CF. I found out that the PYTHON XML package does include WDDX serialization... cool. Regards, Albert ___ 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-dev] ZCatalog uniqueValuesFor() cached?
Stick it in the collector: http://classic.zope.org:8080/Collector/ Chris Brett Carter wrote: How can I update the uniqueValuesFor()? Whenever I delete one of my ZCatalog-aware zclasses, they are still returned in uniqueValuesFor. What gives? is this cached or something? -Brett ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: CoreSessionTracking proposal
--- In [EMAIL PROTECTED], "Chris McDonough" [EMAIL PROTECTED] wrote: Without a client-checking scheme (such as encoding the IP address in the token), a token theft attack is very easy. As voiced by others in the thread, client-checking is not reliable, should not be a default, and maybe shouldn't be included as an option at all. I would like to control finely the session security mechanisms. I would like to be able to plug a client-checking (or anything else). This way, each WebApp developper can discriminate among its own constraints and risks. I want to be able to use different ways to secure the session. For example, ther would be cases where I would implement a client-checking mechanism based on both IP address and browser time-limited cookie. This would allow me to follow sessions on people refusing cookies and on people behind "IP dancing" proxies. I would loose session state for anyone both refusing browser cookie and being behind "IP dancing" proxy. This would be an acceptable compromise if I am manipulating highly private data. In other cases, I could accept lower-level security related to the less privacy. Godefroid Chapelle - BubbleNet sprl rue Victor Horta 30 1348 Louvain-la-Neuve Belgium - This mail sent through SwinG Webmail: http://mail.swing.be ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] (no subject)
[EMAIL PROTECTED] writes: using LocalFS 0.95 war fine until trying to upgrade to Zope 2.2.2. Both freshly installed, the following snippet raises the error: "Unauthorized", "You are not authorized to access read.": dtml-var standard_html_header dtml-var "frei['analog.html'].read()" dtml-var standard_html_footer In earlier Zope versions, a method without a permission meant "can be used freely". Now, it means "cannot be used via DTML/URL". Thus, you must provide a permission for "read". Unfortunately, "read" is not a method of "LocalFS" but from the Zope objects wrapped around the files. You, probably, will not want to change the respective Zope sources. The quickest solution for you would be an external method that gets the file, performs the "read" and returns the result. Alternatively, you may subclass the Zope object classes, provide a permission for "read" and use them in "LocalFS._create_". Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] How to add a SessionID to each page
Hi, I would like to add a SessionID at the end of each requested URL because I would like to know which pages were requested by one user in one session. For example like AMAZON does it: www.amazon.com/books?SessionID=123456 http://www.amazon.com/books?SessionID=123456 My problem: There are to many pages belonging to my homepage that I can't rewrite each link like: a href="next_page?SessionID=dtml-var SessionID"next_page/a Also I tried to pass a SessionID with the help of SiteAccess but a automatic insertion of a random ID doesn't work at my machine. Could anyone give me please a helping hand? (Also, excuse my English) Thanks, Hannes ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Need help tracking down the cause of a traceback
Hi Skip, Skip Montanaro writes: I occasionally get tracebacks like No input for required field File /home/dolphin/skip/src/Zope/lib/python/ZPublisher/HTTPRequest.py, line 445, in processInputs File /home/dolphin/skip/src/Zope/lib/python/ZPublisher/Converters.py, line 115, in field2required ValueError: (see above) The ValueError is being raised in field2required, but I see no parameters in the Apache log with a name of "...:required". That leads me to suspect that somehow the RESPONSE parameter isn't getting set (it's the only non-defaulted parameter in the suspect published methods that doesn't appear to have its value set directly by parameters in the URL). I suspect the problem comes from a "POST" operation. You will not see POST operation parameters in the web server log files. It is highly unlikely that a missing RESPONSE causes the problem. Such an error would be handled at a different place (I think in "mapply"). At line 444 of "ZPublisher/HTTPRequest.py", you will see the following code: if flagsCONVERTED: try: item=converter(item) except: if (not item and not (flagsDEFAULT) and defaults.has_key(key)): item = defaults[key] if flagsRECORD: item=getattr(item,attr) if flagsRECORDS: item.reverse() item = item[0] item=getattr(item,attr) else: raise Add "print key; sys.stdout.flush()" before the final "raise". This will print the corresponding "key" (with is missing). To get more information: the variable "fslist" contains all parameters. It is a list of objects. Each object has a "name" attribute (which gives the form variable name or 'key'), the object either has a "file" or "value" attribute. You may look at line 370, to see how it is processed. You can test your debugging code in your test environment. Simply create a form with a "xxx:required" variable name and do not provide a value. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZPatterns: SkinScript discovery
Just out of curiosity, did you find this out by reading the draft SkinScript reference documentation on the ZPatterns Wiki? At 03:45 PM 10/4/00 +0100, Steve Alexander wrote: I just found out that you can access all sorts of useful methods in SkinScript from the magical "_" namespace variable. Let's say I have a DataSkin that has a propertysheet "journey", which has a "steps" property of type "lines". I can expose its "steps" property as an attribute, and also a neatly formatted version of the same, using this SkinScript: WITH self.propertysheets.get('journey') COMPUTE steps=getProperty('steps'), steps_comma_sep=_.string.join(self.steps, ', ') ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZPatterns: SkinScript discovery
"Phillip J. Eby" wrote: Just out of curiosity, did you find this out by reading the draft SkinScript reference documentation on the ZPatterns Wiki? No. I just guessed. I think I might have read it in the source the other day too. I'll take a look at the wiki now: http://www.zope.org//Members/pje/Wikis/ZPatterns/SkinScriptSyntax expression A DTML-style Python expression. As with DTML, the "_" object is available for access to Python built-ins and library functions. Aha! I'm looking forward to using the new "OTHERWISE LET" clause too, when the next release of ZPatterns comes out. Thanks. At 03:45 PM 10/4/00 +0100, Steve Alexander wrote: I just found out that you can access all sorts of useful methods in SkinScript from the magical "_" namespace variable. Let's say I have a DataSkin that has a propertysheet "journey", which has a "steps" property of type "lines". I can expose its "steps" property as an attribute, and also a neatly formatted version of the same, using this SkinScript: WITH self.propertysheets.get('journey') COMPUTE steps=getProperty('steps'), steps_comma_sep=_.string.join(self.steps, ', ') -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ConflictError
Hi, who can tell me a story about the following error. thanks as 2000-10-04T15:49:35 INFO(0) Z2 CONFLICT Competing writes at, /Management/Geyer/Cluster_1/Verstaerker_1/Modem_7/chart_images Traceback (innermost last): File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 235, in commit File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZODB/Transaction.py, line 251, in commit File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZODB/Connection.py, line 267, in commit ConflictError: yä ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] RFClarification: Security on Product Attributes
If I have the following lines in a Python Product: def __init__(self, id): """initialise a new instance of product""" self.id = id self.title = 'Title!' self.anInt = 0 self.aString = 'testing' Are these attributes protected by the security machinery? If so, how so? Chris - I've verified (any of my previous comments to the contrary) that simple attributes (python types) do not really play in the permissions machinery. The canonical way to expose such things for now is to expose them through method calls (which can play in the permissions scheme). Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Suitability for Computer Lab Project
Zope is just simply not suited to lots of writes. Use Access as the relational database and use Zope as the reporting tool using ZODBCA to connect to Access. Then you get the best of both worlds. - Original Message - From: "John Hopkins" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 02, 2000 10:04 PM Subject: [Zope-dev] Zope Suitability for Computer Lab Project Greetings from a "potential newbie". I need to build an application for recording clients who use a computer lab. The idea is to collect demographic information on clients who use the lab, and session information such as date/time and whether the client attended a class. Objects include clients, sessions and classes (or I think they do; I'm more used to thinking in relational terms. I was going to build it in MS-Access, since it's available on all the PC's in the lab, can do everything I need (including reporting), and I know it well; on the other hand, there are undeniable advantages to having something server-based with minimal client dependencies. I'm pretty sure it would take me more time to build it in Zope than in Access, mainly because I don't know Zope yet. What I don't know is whether this is an appropriate application for Zope; it's not really what I think of as "publishing"; more like data acquisition and subsequent reporting. Observations based on experience will be gratefully received. Thanks in advance, John Hopkins [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZODB
I am getting really funny problems with my Zope installation and I have no idea where to start looking. I for instance deleted a python product from the Products directory and when I start Zope the product is still listed in the Product list. I then packed the ZODB, cleared my Browser's cache, and refreshed the Product List but still the product is visible. I can however delete the python product (which is by the way not in my Products directory) from the Control Panel. Somewhere something is cached and I don't know where. It seems to cache errors as well and they stick. A reinstallation fixed this problem, but now it seems more fundamental. I've come accross this odd caching behaviour again after reinstall and can't reinstall every time this happens. I run Zope 2.2.2 behind Apache 1.3.9 and do virtualhosting with the ProxyPass directive. Please help!! Roché ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] RFClarification: Security on Product Attributes
At 12:27 PM 10/4/00 -0400, Brian Lloyd wrote: I've verified (any of my previous comments to the contrary) that simple attributes (python types) do not really play in the permissions machinery. The canonical way to expose such things for now is to expose them through method calls (which can play in the permissions scheme). IIRC, this stuff got broken by the switch to the new security machinery. ZopeSecurityPolicy doesn't check 'foo__roles__' on the parent object the way ZPublisher does/did. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope 2.2.2 Issue: AttributeError: __call__
I hope I haven't overlooked anything here, and not posting ignorantly. After installing a fresh copy of Zope 2.2.2 on Python 1.5.2, everything seems to look ok. I created a new user with Manager, and then proceeded to create a subfolder for a new web site to test out some things in 2.2.2. I created some dtml documents, then I connected with ftp to create a few more dtml documents, and a couple subfolders with docs. All dtml docs in the main subfolder were renderable. ANY dtml docs in subfolders below that were _not_ renderable, and spit an AttributeError: __call__ generally inside the standard_html_header. However, thinking that there was something wrong rendering my header, I realized there was nothing technically wrong with the dtml in the header. After installing some products, they all ended up complaining about the same thing. I have confirmed this issue with the latest checkout of Zope2 from cvs. Can anyone else confirm this as an issue? Regards, Knight [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] CORBA-ZODB: Is replacing global get_transaction() the only way...
Hi Jim! Glad to here from you. I don't think I'm clearly sharing the problem I'm having. See my comments below. John Heintz Jim Fulton wrote: "John D.Heintz" wrote: Hi all, I am about to embark on integrating ZODB with CORBA, Woo hoo! and am in the deep thinking phase of the endeavor. ;-) What I want to do is _explicitly_ manage connections and transactions without being able to depend on what thread is running. I know that this is _not_ the way that Zope works, That depends on your point of view. The Zope publisher (ORB) largely automates transaction management for application programmers, so they don't have to deal with identifying transaction boundaries. So, from an application point of voew, these details are hidden. First issue I need to clarify: I am not integrating ZPublisher, just ZODB expose objects. I want to do this because we are using ZODB to persist complicated Python object (great database!) but are not publishing them to the web. From a system point of view, Zope does manage per-thread transaction data. This is something a CORBA interface could provide as well. CORBA provides two threading policies, and either could be used in a thread/Connection per request model. I am not intending on doing Connection per request, I would rather manage Connections as longer running activities so that I don't have to create servants more often than necessary. IMPORTANT NOTE: The ZODB-provided transaction manager automatically manages per-thread transaction information. Were you aware of this? This sounds like what you need. Yes, I'm pretty aware of this. I have even studied the cPersistence.c code, specifically the changed() function that calls the global get_transaction() python function. but if I want to use standard CORBA I think I have only two choices: 1) Explicitly associate Connections with Transactions in my CORBA layer. What I need to do is allow any thread to change a Persistent object from some Connection, This would be nice. Basically, you want to open a ZODB database connection and begin a transaction at the beginning of the request. At the end of the request, you want to commit or abort the transaction, depending on whether an error occurred, and close the connection. This is the Zope publisher model. I want to rather keep a persistent reference to objects in the Database (from a Connection) across CORBA Requests. This is the core reason that I am trying to manage Transactions/threads/Connections explicitly. and make sure that the right transaction is called for "register". If I understand your requirements, then the standard transaction machinery should do this for you. Except that I'm not committing or aborting necessarily at the end of a CORBA Request. I plan on having users login to the server and get back a Session object that provides access to other objects in the system. That returned Session object will have a ZODB Connection and a Transaction cached. It also will expose through CORBA a commit() and abort() method that delegates to the ZODB Transaction. All this because I want to keep object from the ZODB Connection cache around for a while. 2) Build a complete wrapping adapter layer that does thread synchronization to the actual Persistent objects and proper thread for the transaction. - Lots of overhead and redundant coding - tricks with ExtensionClass might make this adaptation simpler to code, but still it won't be easy. I'm not sure what this is, but I think it probably isn't necessary. This layer would exist to ensure that, across CORBA Requests, the correct thread would be running. The correct thread is the one that was created in the CORBA Session object that open()ed the ZODB Connection. Obviously number one is my preferred choice. In order to accomplish that, I see only two ways: 1) Modify ZODB to maintain a Connection to Transaction link, and modify cPersistence.c to use that link in the changed() function instead of relying on the standard get_transaction() thread index. Is there a one-to-one relation between threads and connections (or, more precisely, is it the case that there is never more than one simultaneous connection per thread)? If so, then get_transaction() should do the right thing. There would not be any predictable mapping from threads to connections for any two CORBA Requests if I don't throw away the connections after a commit() or abort(). 2) Replace the get_transaction() in globals to return the appropriate Transaction regardless of thread. It currently returns a different transaction depending on the thread. In the CORBA exposure I would never call get_transaction(). I would use the reference to a transaction from the CORBA Session object that originally open()ed a database connection. Again, my preference is number one. After going over the ZODB code, I _think_ that a Connection is always
[Zope-dev] Trying to catch up - what are the best Zope tools today?
Hi, I've been out of the Zope world for a few months... now I'm back and I need to quickly write a small-scale e-commerce application. It's got enough peculiarities to make it impossible to do with eTailer or EMarket, so I'm trying to figure out the best tools and approach to use for writing it, but so much has changed in Zope since I last worked with it. There's ZPatterns, LoginManager instead of GenericUserFolder, new session management products... the new tools seem much better than the old, but most are in development and carry dire warnings, and at least some of the old tools don't work in Zope 2.2. Can anyone provide a quick rundown of the best choices for building a production site at this time? I'm going to need sessions, user registration and login, and the usual array of e-commerce pieces (products, carts, orders, payments...), with all data stored in SQL. I started reading about ZPatterns but I still can't get my head around it... I'm wondering if I should try to learn it fast enough for this project, or stick to what I already know. What in people's experience is the typical learning curve for ZPatterns? How much am I going to have to figure out to be able to build support for SQL storage? I couldn't find any examples for SQL use in ZPatterns - did I miss anything? Thanks in advance for any comments. -- Itai Tavor"Je sautille, donc je suis." C3Works[EMAIL PROTECTED] - Kermit the Frog "If you haven't got your health, you haven't got anything" ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Trying to catch up - what are the best Zope tools today?
Itai Tavor wrote: Can anyone provide a quick rundown of the best choices for building a production site at this time? I'm going to need sessions, user registration and login, and the usual array of e-commerce pieces (products, carts, orders, payments...), with all data stored in SQL. As far as user registration and logins, LoginManager in conjunction with the Membership product seem to have reached a semi-stable implementation. It took me some serious skull-sweat to figure them out enough to do SMB authentication from a Solaris box off of a NT PDC, and some more to get LM to participate in the local roles machinery, but once I did, it's been working really well. I assume that creating an SQL UserSource won't be any more dificult. Good Luck. Warning: :-) The current membership product has not yet been re-integrated with the PTK, so the implementation (though stable) may have further architectural changes coming down the pipe. HTH, Michael Bernstein. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )