[Zope] Batchpeocessing with multiple selection
Hello, I am using Zope sine last couple of months. I have been using zope from source version Zope-2.1.6-src. My operating system is Turbolinux6.0 and my database is MySql. I have to make an search on a column having multiple selection i.e take for example I have a column for city in one of my tables which also contains many other columns. Now i make a search on multiple city along with the state in which that city belongs. The search is working fine I get all the data i want, But my problem is that i wan to display only 10 rows on the page.For this i am using batch processing. But it is giving me errors Such as key error [city],[state] and gives the url of my page where i m using batchprocessing. Can someone help me out how to overcome the problem this problem as this is very urgent for me. I think the varibles are not geting passed again when i click on next sequence. Thanx in anticipation of a reply and warm regards to all. Hope I am able to explain what my probelm is ? Vikas Mahajan ___ 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] Batchpeocessing with multiple selection
+[ vikas ]- | the varibles are not geting passed again when i click on next sequence. You have to pass the variables, to the page that *does the query* The query is run every time, just different results are displayed. If this is a problem, check out the advanced properties for your query and cache the query for a few minutes. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[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] Adding DTML document hangs Zope
Whenever I try to add a DTML document under Zope 2.2.0 it seems to hang the system. Has anyone had this kind of problem, or am I doing something wrong? I am adding the document as non-superuser, which seems to be the only way to add items... Thanks -- Lucas Vogel [EMAIL PROTECTED] 01-Aug-2000 For-pay Internet distributed processing. http://www.ProcessTree.com/?sponsor=49351 -- "But the most reliable indication of the future of Open Source is its past: in just a few years, we have gone from nothing to a robust body of software that solves many different problems and is reaching the million-user count. There's no reason for us to slow down now." -- Bruce Perens, on the future of Open Source software. (Open Sources, 1999 O'Reilly and Associates) ___ 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] Importing problems
Hi all, How can i import objects from 2.1.6 to 2.2.0? I can import them but couldn't view them, some authorization problems. Is that a known problem? Could you help out with ? Thanks a lot $Regards MM ___ 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/proxy_pass configuration problem
Hi Zope-Configuristas! I would finally like to say goodbye to pcgi but one thing keeps me hooked. I tried and tried but the solution just won't appear. Here is the problem: I have a site that is supposed to be reachable via http as well as via https. That's not a problem per se. Configuration of zope with proxy_pass is easy as can be. The problem is that management shall be possible via https _only_ (for obvious reasons). But as soon as I use site access to define the http-branch this branch is not managable/accessable via https any more. Is there a solution? Ragnar ___ 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: [Soft] [Fwd: [Zope] compile ZPoPyDA product problems]
hi, I keep getting the same compile error - gcc - shared PoPymodule.o -lpq -o PoPymodule.so /usr/i486-suse-linux/bin/ld: cannot find -lpq -Find libpq.so on your machine. -Edit the last? (going from memory) line of Makefile, adding -L/directory/that/holds/your_libpq (just the directory, not the filename) right before -lpq with the new versions of PoPy you can simply do: ./configure --with-postgres-libs=/directory/that/holds/your_libpq ciao, federico -- Federico Di Gregorio MIXAD LIVE System Programmer [EMAIL PROTECTED] Debian GNU/Linux Developer Italian Press Contact[EMAIL PROTECTED] Debian. The best software from the best people [see above] -- brought to you by One Line Spam ___ 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] zwiki mailing list ? RFC
"Geoff Gardiner" [EMAIL PROTECTED] writes: Could this be done by moving joyful/zwiki to zope.org? If so, we could use the same (zope@ and zope-dev@ + wiki) mechanisms so long as there is clarity between the aims of ZWiki and WikiNG (clearly posted on both wikis). I'd be open to this if it were advantageous.. don't see a problem at the moment. Trying to keep abreast of an active sourceforge/zwiki as well as joyful/zwiki, zope/WikiNG, zope@ and zope-dev@ at the same time would be even more of a trial than I find it now. I can definitely relate (just surveyed all of the zope.org wikis). What I had in mind was mirroring the zwiki mail list to zwikiweb; you would not have to visit both. I've seen mail/zwiki integration in a few places but I'm not sure if it has been solved well yet. Really I'm looking for something new which combines the best features of a wiki, a mailing list and a newsgroup. Has anyone got any ideas on this ? -Simon ___ 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] Importing problems
At 09:15 2-8-00 +0200, Marko MARKOVIC wrote: Hi all, How can i import objects from 2.1.6 to 2.2.0? I can import them but couldn't view them, some authorization problems. Is that a known problem? If you're using sql methods then this might cause the autorization error. There is a patch available at: http://zope.nipltd.com/public/lists/zope-archive.nsf/ByKey/1B0EA8EF64524A02 Diny DIVA, Faculty of Veterinary Medicine Utrecht University, The Netherlands http://www.vet.uu.nl ___ 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] ZSearch generated default report file fails on result set cardinality greater 50 for content which contains www addresses
Hi, I came across the situation, where the result rows of a Z SQL access contained www strings like www.uni-ko-ld.de/veranstaltungen/lehramt.html, see below. Using ZSearch generated dtml-methods generated the following html code, when the result set contains more than 50 items. See the generated reference for the next items a href="www.uni-ko-ld.de/veranstaltungen/lehramt.html?fach=%25hochschule=%25SUBMIT=Submit+Queryquery_start=51", which didn't refer to the running zope environment. Instead it merged address stuff from a result row. Did anybody came across with similar effects? tr tdBildende Kunst/td tdUniversität Koblenz-Landau/td tdwww.uni-ko-ld.de/veranstaltungen/lehramt.html/td td0/td td-00-00 00:00:00/td td0/td td0/td td/td /tr /table a href="www.uni-ko-ld.de/veranstaltungen/lehramt.html?fach=%25hochschule=%25SUBMIT=Submit+Queryquery_start=51" (Next 50 results) /a Thanks Andreas ___ 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] Change db connect string in python or dtml
Hi. I have an instance of a 'Z MySQL Database Connection' called mysql. How can I change the 'Database Connection String' and then then try to connect, either in dtml or python? -- /Magnus Heino ___ 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] LoginManager UserSources
What UserSources are available as of today for the LoginManager to use? How do they work? TIA Danny ___ 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] ZDOM XML
Hello, I have been trying to use XML with Zope. My operating system is turbolinux6.0 and database is MySql. I am facing problem about using ZDOM. How do I use ZDOM or simple DOM along with the XMLDocument and XMLWidgets to access and manipulate my data in XML format. Thanking you in anticipation. With Best and warm regards. Vikas Mahajan ___ 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] Property Problem (type converting)
I like the property of a folder being a list, because new entries should be automatically updated(strings with the current month-name). I've tried tokens but it's not working correctly. dtml- if "not MonthNow in oldTime" dtml-call "oldTime.append(MonthNow)" dtml-call "entries.manage_changeProperties({'months': oldTime})"//months is the token-property /dtml- if The problem is that every new entry is a single list.I've tried type-converting but it's not working for me. Many thanks for any hint. ___ 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] PTK binary distribution?
Hi Zopers .. Using PTKSnap.tgz , I find lib\python\Products\ZPatterns\DynPersist.so lib\python\Products\ZPatterns\DynPersist.o lib\python\Products\ZPatterns\DynPersist.pyd lib\python\Products\ZPatterns\DynPersist.c in the archive. This looks just fine for Linux use, but I'm on W2K without a C compiler .. does anyone have the corresponding .dll (it would be a .dll, wouldn't it?) -- jean ___ 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 down?
Hi all, Is it just me having problems or is www.zope.org down or being DOS-ed etc? Ewald Wasscher ___ 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] PTK binary distribution?
On Wed, Aug 02, 2000 at 01:05:16PM +0200, Jean Jordaan wrote: Hi Zopers .. Using PTKSnap.tgz , I find lib\python\Products\ZPatterns\DynPersist.so lib\python\Products\ZPatterns\DynPersist.o lib\python\Products\ZPatterns\DynPersist.pyd lib\python\Products\ZPatterns\DynPersist.c in the archive. This looks just fine for Linux use, but I'm on W2K without a C compiler .. does anyone have the corresponding .dll (it would be a .dll, wouldn't it?) The .pyd file is a .dll by another name. -Dom ___ 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 down?
its down -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ewald Wasscher Sent: Wednesday, August 02, 2000 7:27 AM To: [EMAIL PROTECTED] Subject: [Zope] zope.org down? Hi all, Is it just me having problems or is www.zope.org down or being DOS-ed etc? Ewald Wasscher ___ 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 down?
No, it's not just you. - Original Message - From: "Ewald Wasscher" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 02, 2000 12:26 PM Subject: [Zope] zope.org down? Hi all, Is it just me having problems or is www.zope.org down or being DOS-ed etc? Ewald Wasscher ___ 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] request for advice
Hi Folks, ZCVSMixin is coming along... there are several things that need to be done, but I've been on vacation.. I'm thinking of some kind of fishbowl proposal, but there might be something that could be done easily to allow it to work 'as is' on Windows. (I run windows only when I am forced to ;- ) Here is the only code in ZCVSMixin that currently makes it fail on Windows: # # zope doesn't like forking... so let's just be dumb and use files # rather than pipes.. # stdoutFname = tempfile.mktemp() stderrFname = tempfile.mktemp() cmd = 'sh -v -c "%s" %s 2%s' % (command, stdoutFname, stderrFname) zLOG.LOG('ZCVSMixin', zLOG.BLATHER, 'processing streams.. "%s"' % cmd) iresult = os.system(cmd) zLOG.LOG('ZCVSMixin', zLOG.BLATHER, 'checking result .. "%i"' % iresult) resultStd = open(stdoutFname).read() resultErr = open(stderrFname).read() os.remove(stdoutFname) os.remove(stderrFname) zLOG.LOG('ZCVSMixin', zLOG.BLATHER, 'Got result.. "%s"' % resultStd) zLOG.LOG('ZCVSMixin', zLOG.BLATHER, 'Got err result.. "%s"' % resultErr) return iresult, resultStd, resultErr I started with popen2 and friends.. but that didn't seem to play well with Zope... probably mixing processes and threads is a bad idea... I dunno. Anyway I'm not sure of the best way to do this in Windows. Of course, ulitmately Shane Hathaway's idea of having a separate 'mini cvs servelet' process running that zope communicates with via tcp/ip could be the best way to add security and platform independence, but it sounds like a fair amount of extra complexity to me, esp when I don't have a lot of 'free time' to implement such a strategy. Any thoughts about this? Also.. I'm trying to find a sane way to handle folder hierarchies with ZCVSMixin. The main problem I have is separating the attributes of containers with their contents. Right now the export/import code treats folderish objects as a 'clump'. I think need a sort of 'export contents' and 'export attributes' protocol so that folders under CVS control can export their attributes (as if it were some 'content') into some 'special' file, then delegate the exportation of their contents to the CVS Folder. Any thoughts about this appreciated! ;-) -steve "Chris" == Chris McDonough [EMAIL PROTECTED] writes: Chris Steve Spicklmire has also written the ZCVSMixin product Chris (which I've never actually used) that might let you Chris integration filesystem versioning with Zope more easily as Chris well... -Original Message- From: Patrick Lewis [mailto:[EMAIL PROTECTED]] Sent: Friday, July 21, 2000 12:50 PM To: '[EMAIL PROTECTED]' Subject: Re: [Zope] request for advice On Fri, Jul 21, 2000 at 04:29:01PM +0100, Seb Bacon wrote: Hello folks, I'm just beginning to design my first big Zope application. I'm writing to ask zopististitiatatas for some advice, since I'm a bit of a newbie and I want to make sure: [a] I reuse as much code as possible [b] I make my code as reusable as possible [c] my application is stable and scalable . ___ 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 down?
Hi I have the same problem it look's like the server is little bit down At 01:26 PM 8/2/00 +0200, you wrote: Hi all, Is it just me having problems or is www.zope.org down or being DOS-ed etc? Ewald Wasscher ___ 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 down?
Phil Harris wrote: No, it's not just you. GRR, zope.org is down, squishdot doesn't work on Zope 2.2.0 I can't get the PTK (0.7.1 and CVS) to work on Zope 2.2.0, can't download the snapshot of the PTK mentioned on the list because (if someone would mind mailing me a copy?) etc. Ewald ___ 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] ZLDAP Filter Methode?
Hi, I want to access a LDAP server with the ZLDAP modules. Is there a tutorial somewhere on how to use this ZLDAP Filter Methode? ___ 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] Troubles with ZOracleDA
Hi all. I downloaded and installed : Zope-2.2.0b4 DCOracle-1.3.1b1 ZOracleDA-2.2.0b1 Oracle 8.1.6R2 All on RedHat6.1 kernel 2.2.12. Oracle and Zope running in the same machine, DCOracle test works fine, I can connect with sqlplus and OEM, Zope installed ZOracleDA without problems but when I make the connection, Zope crashs and reports "OCIEnvCreate failed". The string connection is like "user/password@SID" and works with DCOracle and sqlplus. The enviroment variables are all set (ORACLE_HOME, ORACLE_SID). Any idea ???. Pedro Vega ___ 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] SORRY FRANK !
Frank, I'm sorry indeed that I just emailed a complaint to you about posting HTML. You weren't the bad guy. I should have read twice. / Svante --On Tuesday, August 01, 2000 13:20 -0400 Frank McGeough [EMAIL PROTECTED] wrote: Is there a zope product that I can use to make a set of questions and answers (multiple choice) and provide people with feedback on their score and the correct answers at the end of the test? I'm looking at doing some simple staff training stuff. Frank McGeough Synchrologic, Inc. http://www.synchrologic.com P:770.754.5600 F:770.619.5612 "Beware of all enterprises that require new clothes." Henry David Thoreau ___ 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/proxy_pass configuration problem
Ragnar, If you're referring to my ZServer+Apache+SSL HOWTO, this would be a problem. Going in through https will only give you access to the 'ssl' directory. The quick dirty solution (while retaining the ability to distinguish between http and https) is to reverse the setup, i.e. place the https SiteRoot in the main folder and create a separate folder called, say, 'http', which holds the http SiteRoot. This solution will kill two birds with one stone: it will grant access to the entire site via https while restricting http users to an empty subdirectory. Hope this helps, T.J. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ragnar Beer Sent: Wednesday, August 02, 2000 1:30 AM To: [EMAIL PROTECTED] Subject: [Zope] zope/proxy_pass configuration problem Hi Zope-Configuristas! I would finally like to say goodbye to pcgi but one thing keeps me hooked. I tried and tried but the solution just won't appear. Here is the problem: I have a site that is supposed to be reachable via http as well as via https. That's not a problem per se. Configuration of zope with proxy_pass is easy as can be. The problem is that management shall be possible via https _only_ (for obvious reasons). But as soon as I use site access to define the http-branch this branch is not managable/accessable via https any more. Is there a solution? Ragnar ___ 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] XML-RPC and Zope
Lots. If you have Zope 2.2, see the API Documentation in the help system. -Original Message- From: Gijs Reulen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 02, 2000 8:33 AM To: Mailinglist Zope Subject: [Zope] XML-RPC and Zope Hi there I am experimenting with XMP-RPC and Zope: I want to manipulate things from Borland Delphi. I got the example from the XML-RPC working, but now I wonder what other commands besides 'objectIds' are valid for Zope. For example, how can I determine which type each object in a folder is and how can I retrieve and store (change) the contents of an object ? Gijs Reulen ___ 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] Evaluating a string of DTML code?
Hi, I have an ExternalMethod that processes an HTML file, extracts the contents of the BODY tag, and wraps my site template around it. (In other words, it takes a plain vanilla HTML file and adds standard_html_header and standard_html_footer). [See http://www.zope.org/Members/unfo/howto_wrapper/index_html for more background] The problem is this: I can't have arbitrary DTML code in the HTML file. Zope completely ignores it. I tried fmt=structured-text, but that doesn't work, either. Since the file is essentially read in as a string, is there any way to evaluate an arbitrary string of DTML code? Thanks a ton! - T.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] Separate Instances of Zope
On Tue, 1 Aug 2000, blueeye wrote: If this server goes down, can I have a backup zope server that replicates the main server? Depending the on the volatility of the data, you could just periodically copy the Data.fs file to the backup machine. --RDM ___ 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] 2.2 Explicit/implicit problem.
On Tue, 1 Aug 2000, Capesius, Alan wrote: The button displayed under Ownership indicates that they can switch, but does nothing when clicked. Perhaps this is a manifestation of the 'boolean properties can't be unset' bug reported here earlier? --RDM ___ 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] Custom error messages - bug?
I have customized the standard error message and placed it in a folder above root level. When a error occurs the error message at the root level still get executed though. I have named my own error message the same (standard_error_message) and I am sure that the error I get comes from inside the folder I put my customized version in. I am also sure that there are no errors I my error message (it works if I put it at the root level). I know there has been some issues with this before but it was supposed to be fixed to 2.2 (which I run). Has any1 else had any problem with this or are there still bugs? ___ 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] dtml-calendar question.
hi, I'm trying to use the calendar tag as a front end to a calendar database. I have a sql database storing events and a sql method called get_days_events which takes an arguement called startDateString In my dtml-calendar tag I have ... dtml-var "date.mm()"/dtml-var "date.dd()"/dtml-var "date.yy()" which returns "07/31/00" how do I get this value into the parameter of a dtml-in tag... sort of like this... dtml-in get_days_events(dtml-var "date.mm()"/dtml-var "date.dd()"/dtml-var "date.yy()") dtml-var EventNamebr /dtml-in any ideas anyone? cheers 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 )
[Zope] Anyone using Zope on a RAQ3?
Has anyone tried running Zope on a Cobalt RaQ3? The reason I ask is that a UK company is now offering dedicated RaQ3's for 29 pounds/month (64Mb RAM, 8Gb disc), and I wondered if it would make a good Zope platform or not? -- Duncan Booth [EMAIL PROTECTED] int month(char *p){return(124864/((p[0]+p[1]-p[2]0x1f)+1)%12)["\5\x8\3" "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure? http://dales.rmplc.co.uk/Duncan ___ 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] Proxy-role????
Hello, I wanted to change a method (code-a href="Datenbank/index_html"Zurueck zur Einstiegsseite/a)because I had changed the Objectname.The role was manager with all the premissions, but Zope didn't want me to do that!! Message of Zope -"You are not authorized to change link_home because you do not have proxy roles. " Why Thanks. ___ 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] FW: [Zope] dtml-calendar question.
-- From: tom smith [EMAIL PROTECTED] Date: Tue, 01 Aug 2000 17:16:39 +0100 To: Peter Bengtsson [EMAIL PROTECTED] Subject: Re: [Zope] dtml-calendar question. on 2/8/00 4:04 pm, Peter Bengtsson at [EMAIL PROTECTED] wrote: dtml-let yearnr="date.yy()" monthnr="date.mm()" daynr="date.dd()" dtml-let startDateString=yearnr+'/'+monthnr+'/'+daynr dtml-in get_days_events(startDateString) dtml-var EventNamebr /dtml-in /dtml-let /dtml-let Cheers Peter but I get ... Error Type: KeyError Error Value: yearnr+'/'+monthnr+'/'+daynr any MORE ideas :-) 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] dtml-calendar question.
On Sat, 12 Aug 2000, tom smith wrote: dtml-in get_days_events(dtml-var "date.mm()"/dtml-var "date.dd()"/dtml-var "date.yy()") Untested: dtml-in expr="get_days_events('%s/%s/%' % (date.mm(),date.dd(),date.yy())" Inside the quotes you are in Python... --RDM ___ 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-calendar question.
+[ R. David Murray ]- | On Sat, 12 Aug 2000, tom smith wrote: | dtml-in get_days_events(dtml-var "date.mm()"/dtml-var | "date.dd()"/dtml-var "date.yy()") | | Untested: | | dtml-in expr="get_days_events('%s/%s/%' % (date.mm(),date.dd(),date.yy())" | | Inside the quotes you are in Python... kind of... -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[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] compile ZPoPyDA product problems (continued)
Alright, slowly but surely. I've checked out ld.so.conf and the libraries appear to be setup correctly. The output of ldconfig -v shows (among other things): /opt/pgsql/lib: libpq.so.2.1 - libpq.so.2.1 * There is no entry for the generic libpq.so * libpq.so is a link to libpq.so.2.1 Is this potentially the problem? Are there solutions? Thanks for all of the help already. - Steve On Tue, 01 August 2000, [EMAIL PROTECTED] wrote: On Tue, Aug 01, 2000 at 02:01:45PM -0700, Stephen Nosal wrote: Well, I'm getting somewhere. The make and make install on the PoPymodule completed with no errors, but now in python the import PoPy returns the following: Traceback (innermost last): File "stdin", line 1, in ? ImportError: /usr/lib/python1.5/site-packages/PoPymodule.so: undefined symbol: PQfsize This is defined in libpq, so, it appears that PoPy is doing using libpq as a shared library. This makes sense. Now, you know where libpq lives. edit (as root) /etc/ld.so.conf. Add the path to the library as the last line in this file. Then run ldconfig. You might want to man ld.so and man ldconfig before you do this. This is not the kind of info to take on blind trust. This is from the PoPy-1.2.1 tarball. On another note, ZPyGreSQLDA appears to be up and running. Thanks for all of the help. - Steve On Tue, 01 August 2000, [EMAIL PROTECTED] wrote: On Tue, Aug 01, 2000 at 10:54:50AM -0700, Stephen Nosal wrote: Folks - I could use a hand here - I'm trying to compile the PoPy module for python so I can use the ZPoPyDA to connect to my PostgreSQL database. I keep getting the same compile error - gcc - shared PoPymodule.o -lpq -o PoPymodule.so /usr/i486-suse-linux/bin/ld: cannot find -lpq I have compiled other binaries on this machine, including Zope 2.2. Python runs fine, I just don't know enough about ld to understand the error. (I get the same error trying to compile ZPyGreSQLDA. This message is saying that the postgres library libpq cannot be found by the linker (postgres was formerly called PostQuel, hence pq). Not having Suse, which I have heard has somewhat unusual layout, I cannot tell you for sure what to do... but try find / -name "libpq*" THis should find any libpq's on your system Then if libpq is in /usr/lib/foo, do export LD_LIBRARY_PATH=/usr/lib/foo gcc - shared PoPymodule.o -lpq -o PoPymodule.so Any pointers would be greatly appreciated. - Steve __ Get your Private, Anti-Spam, Free Email at http://e3mil.com and Step into a Friendly Universe! ___ 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 ) __ Get your Private, Anti-Spam, Free Email at http://e3mil.com and Step into a Friendly Universe! ___ 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 ) __ Get your Private, Anti-Spam, Free Email at http://e3mil.com and Step into a Friendly Universe! ___ 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-calendar question.
On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote: | Untested: | | dtml-in expr="get_days_events('%s/%s/%' % (date.mm(),date.dd(),date.yy())" | | Inside the quotes you are in Python... kind of... Well, yeah. A restricted python environment. The point being, it follows python syntax rules grin. I see I made a typo: '%s/%s/%s'. --RDM ___ 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-calendar question.
+[ R. David Murray ]- | On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote: | | Untested: | | | | dtml-in expr="get_days_events('%s/%s/%' % (date.mm(),date.dd(),date.yy())" | | | | Inside the quotes you are in Python... | | kind of... | | Well, yeah. A restricted python environment. The point being, it follows | python syntax rules grin. kind of... :-) -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[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] Take possession over DTML Documents/Methods
Hello I use you Poll product [http://www.zope.org/Members/mega/poll] The only two documents I can control is the index and results page, which is fine. But how do I do if I want to change and modify how other things work, such as the way the results are presented and what happens after you've clicked 'Vote'. The reason I'm asking is that I want to translate everthing shown to the user in Swedish and I also want it to work with the rest of my sites content (CSS and layout). I managed this well with index and results. I can't change the product itself because I am being hosted by a friend and I can't ask him to modify products to suit me. I had the same problem with the URL Directory product http://www.zope.org/Members/Roug/SimpleURLs ]. I didn't want to use the thank_you_html page (found in Control Panel) so I changed (with my administrators consent) that to thankyou_html and put in my own thankyou_html document in the relevant folder. In other words, how do I take possession of the documents/methods of your otherwise lovely product? Peter Bengtsson - bloody good programmer ___ 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] webdav q
Hi, I was experimenting with Goliath, http://webdav.org/goliath/. It's a nice webdav client for MacOS. It has more or less the look and feel of the MacOS finder. Goliath has locking support, but disables that feature when talking to a Zope server. Also I was fiddling with Zope versions, but the webdav client seems to slip content underneath the versioning interface in Zope. I was wondering if it would be possible to make Zope version map into the webdav concept of locking, or does Zope have a concept of locking? -- // [EMAIL PROTECTED] // Programmer, Panorama Point web communications // New Mexico, USA // 505-424-4800x35 ___ 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] indirection problem
I have in a dtml var the name of a dtml document I want to show as part of another document. If I do a dtml-var "_.getitem(file)" (where file is the said variable) I get the content of that document show but now as html but as text, things like have been translated to lt; Any sugestions ? Thanks in advance, Jacques ___ 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-calendar question.
On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote: | Well, yeah. A restricted python environment. The point being, it follows | python syntax rules grin. kind of... :-) In what way does it *not* follow Python (expression) syntax rules? --RDM ___ 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/proxy_pass configuration problem
Very good idea! I tried it and it works like a charm :) Thanks a lot! One problem is left over: apache doesn't cache the documents although I have dtml-call "RESPONSE.setHeader('Expires', _.DateTime(_.DateTime().timeTime() + 3600).toZone('GMT').rfc822())" in my standard_html_header. ab -n 100 -c 1 http://www.dummy.com/index_html shows 100 queries in Z2.log where there should be only one. What could I be doing wrong? Ragnar Ragnar, If you're referring to my ZServer+Apache+SSL HOWTO, this would be a problem. Going in through https will only give you access to the 'ssl' directory. The quick dirty solution (while retaining the ability to distinguish between http and https) is to reverse the setup, i.e. place the https SiteRoot in the main folder and create a separate folder called, say, 'http', which holds the http SiteRoot. This solution will kill two birds with one stone: it will grant access to the entire site via https while restricting http users to an empty subdirectory. Hope this helps, T.J. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ragnar Beer Sent: Wednesday, August 02, 2000 1:30 AM To: [EMAIL PROTECTED] Subject: [Zope] zope/proxy_pass configuration problem Hi Zope-Configuristas! I would finally like to say goodbye to pcgi but one thing keeps me hooked. I tried and tried but the solution just won't appear. Here is the problem: I have a site that is supposed to be reachable via http as well as via https. That's not a problem per se. Configuration of zope with proxy_pass is easy as can be. The problem is that management shall be possible via https _only_ (for obvious reasons). But as soon as I use site access to define the http-branch this branch is not managable/accessable via https any more. Is there a solution? Ragnar ___ 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] Bi-directional update of Data.fs
Bill Anderson wrote: [snip] Hmm ... howzabout this for an idea, at least: Since the Data.fs is appended to, and that your disconnected version is canonical, why couldn't you basically look for the last common transaction, and append all transactions in the canonocial to the main one? Bill (thinking this might need to be moved to dev ...) Because my disconnected Data.fs very well may not be canonical. If it were, then a simple scp Data.fs server:/path would do the trick. Bonus points for rsync which would probably result in the last n bytes being appened, all without using any knowledge about ZODB transactions. Merging changes is the tricky part. I'm wondering if the easiest way to do it now wouldn't be Coda and maybe logically separated mounted ZODB databases. -Otto. ___ 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] 2.2/OpenBSD2.7 runaway
Zope/Unix newbie here, so please be gentle. Apologies in advance if this is the wrong list for this question. I was having fun with Zope 2.1.6 on a LinuxPPC machine, then moved it over to a Zope 2.2, AMD-K6-2 box running OpenBSD 2.7. It ran fine for a week, then not-so-fine. Watching TOP, the Zope/Python process is consuming ALL available cpu time, rendering the machine completely non-resposive. Python 1.5.2 and Zope 2.2.0 were compiled from source. OpenBSD kernel was compiled with maxusers = 128 I get the feeling that this is one of those "oh, you forgot to flick that bit" things. I just can't find the right bit to flick! Any advice is welcome! ___ 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 UserSources
Title: RE: [Zope] LoginManager UserSources Hi Danny, I don't think the question applies, as you are prettymuch free to build a UserSource to anything you want. Of course, with that freedom comes aggrevation. ;-/ There is ready documentation on the Zope site for interfacing LM to SMB for authentication. I've gotten it working with Postgres (with crypted passwords no less!) It took me a couple of weeks on and off to finally get that going. Yes, it was painful, especially having no prior experience with GUF (or much experience with Zope, for that matter...) I've not made it a very high priority, but I'm working on a LoginManager/PostgreSQL walkthrough hoping that I might save someone else some grief. That info should be easy to translate for any other datasource full of users you might have in mind. Interested? -cw- -Original Message- From: Danny William Adair [[EMAIL PROTECTED]] Sent: Wednesday, August 02, 2000 4:51 AM To: [EMAIL PROTECTED] Subject: [Zope] LoginManager UserSources What UserSources are available as of today for the LoginManager to use? How do they work? TIA Danny
RE: [Zope] Change db connect string in python or dtml
Title: RE: [Zope] Change db connect string in python or dtml Have you tried: create a new instance of a database connection alongside the old one, then point your SQL methods at the new connection. When you have them all switched over, delete the old connection. -cw- -Original Message- From: Magnus Heino [[EMAIL PROTECTED]] Sent: Wednesday, August 02, 2000 5:50 AM To: [EMAIL PROTECTED] Subject: [Zope] Change db connect string in python or dtml Hi. I have an instance of a 'Z MySQL Database Connection' called mysql. How can I change the 'Database Connection String' and then then try to connect, either in dtml or python? -- /Magnus Heino
RE: [Zope] Anyone using Zope on a RAQ3?
Has anyone tried running Zope on a Cobalt RaQ3? The reason I ask is that a UK company is now offering dedicated RaQ3's for 29 pounds/month (64Mb RAM, 8Gb disc), and I wondered if it would make a good Zope platform or not? Well I _was going to say, "One thing that was not clear from their website was whether or not there were any restrictions on what you can install on these boxes", but they have changed the page: http://powerraq.com/ to make this quite clear - "full root access". It is worth a try. Anyone interested in sharing? Richard ___ 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 UserSources
On Wed, 2 Aug 2000 15:13:45 -0400 you wrote: I've gotten it working with Postgres (with crypted passwords no less!) It took me a couple of weeks on and off to finally get that going. Yes, it was painful, especially having no prior experience with GUF (or much experience with Zope, for that matter...) I've not made it a very high priority, but I'm working on a LoginManager/PostgreSQL walkthrough hoping that I might save someone else some grief. That info should be easy to translate for any other datasource full of users you might have in mind. Interested? What I read: "I see you're starving. Are you interested in some food?" Yes! I'm desperate for a way to use Oracle and/or X.500 databases for authentication (and authorization and ...). I would be happy to pay someone to hold my hand through creating such a product. (This is one of the first things I built into Apache so many years ago.) I'm a bit fuzzy on this, though. Shouldn't there be an easy way to generalize databases for this purpose? Why do we need PostgreSQL, Oracle, Gadfly, ... versions? I'd like to be able to just choose a connection ID and go. Thank you. --kyler ___ 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] boolean property bug
On Mon, 31 Jul 2000, Jonothan Farr wrote: You should submit this to the collector, preferable with a patch! ;) Otherwise it's likely to get lost in the chaos of the list. http://classic.zope.org:8080/Collector So I did it. (Collector #1495) You can patch your Zope on your own by replacing some code in file lib/python/OFS/PropertySheets.py. In class PropertySheet, change method manage_editProperties to this: def manage_editProperties(self, REQUEST): """Edit object properties via the web.""" for prop in self.propertyMap(): name=prop['id'] value=REQUEST.get(name, '') self._updateProperty(name, value) return MessageDialog( title ='Success!', message='Your changes have been saved', action ='manage') It works for me, hope it helps. ololo ___ 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] permission settings do not work like expected
I use zope 2.2.0 and I've got a problem with permission settings. When I try to limit the permissions for user to add only on type of objects to a folder then I get always two types back: - the one, which I like - and "Z Gadfly Database Connection" I just fixed this today - it turned out that all older products that don't use the 'initialize' method in their __init__ (in other words, that use the old implicit way of initialization) weren't correctly screened in the add list. The fix will be in the next release. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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] webdav q
Goliath has locking support, but disables that feature when talking to a Zope server. Also I was fiddling with Zope versions, but the webdav client seems to slip content underneath the versioning interface in Zope. I was wondering if it would be possible to make Zope version map into the webdav concept of locking, or does Zope have a concept of locking? You have hit on exactly the reason why we didn't implement DAV level 2 locking yet :^) It would have been relatively simple to do so, but it would have been in a way that only DAV clients would respect locks. In an environment where people may be changing content via HTTP, FTP, DAV, xml-rpc, in versions, etc., it seemed like it would be better to think harder about the 'locking problem' and what would make the most sense given all the things going on. Unfortunately we haven't been able to get back to thinking about that yet. I'd love to see someone take up the mantle for this on dev.zope.org though :^) Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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] ZODBCDA 3.1.0b2 and Zope 2.2 as a Service on NT
I am having problems with Zope 2.2 and ZODBCDA 3.1.0b2. When I start Zope manually with the start.bat my ZSQL methods work fine. When I start Zope as a service, every ZSQL method returns a SQL error that states that the table I am looking for does not exist. Anybody out there know what's going on? Thanks __ Jim Sanford . Database Engineer / \ / Accelerated Technology, Inc. / / 720 Oak Circle Drive East / / \Mobile, AL 36609 / / \ Voice: 334-661-5770 fax: 334-661-5788 / \ E-Mail: [EMAIL PROTECTED] Web: http://www.atinucleus.com Nucleus. All You NEED in an RTOS. Royalty Free __ ___ 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] compile ZPoPyDA product problems (continued)
On Wed, 02 August 2000, [EMAIL PROTECTED] wrote: On Wed, Aug 02, 2000 at 08:51:14AM -0700, Stephen Nosal wrote: Alright, slowly but surely. I've checked out ld.so.conf and the libraries appear to be setup correctly. The output of ldconfig -v shows (among other things): /opt/pgsql/lib: libpq.so.2.1 - libpq.so.2.1 * There is no entry for the generic libpq.so * libpq.so is a link to libpq.so.2.1 Is this potentially the problem? Are there solutions? Actually, I am not so sure there. My /usr/lib (debian) has these links. -rw-r--r--1 root root88666 Jul 24 17:15 libpq.a lrwxrwxrwx1 root root 12 Jul 26 11:44 libpq.so - libpq.so.2.1 lrwxrwxrwx1 root root 12 Jul 26 11:44 libpq.so.2 - libpq.so.2.1 -rw-r--r--1 root root66296 Jul 24 17:15 libpq.so.2.1 Maybe I wasn't clear - my lib directory has the same links and files as yours (my libpq.a is smaller than yours). It's just that ldconfig -v gives me /opt/pgsql/lib: libpq.so.2.1 - libpq.so.2.1 There is no reference to libpq.so, and I still receive the same error with import PoPy. I question if I need a libpq.o listing from ldconfig -v or not? Thanks for your prompt replies and help. I really appreciate it. As root, you can cd /opt/pgsql/lib and ln -s libpq.so.2.1 libpq.so and then you will have the link! __ Get your Private, Anti-Spam, Free Email at http://e3mil.com and Step into a Friendly Universe! ___ 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] Confusing aq - I don't get it, anyone know why?
I've lost my Zope zen, why doesn't this work? My folders and documents / (folder) strader (folder) FormatDate (external method) outbound (folder) PackagInfo (dtml document) FormatColumnTable (dtml method) PackageInfo has code like this: dtml-with "GetDB().Package.TrackingNumber_index.select(trackingnumber).fetchone()" dtml-var FormatDate table width="100%" border="0" dtml-var "FormatColumnTable(columnlist=packagecolumns,obj=GetSelf(),notable=1)" /dtml-with FormatColumnTable has code like this: dtml-let value="something " dtml-var "FormatDate(date=value)" /dtml-let However this FormatDate raises a NameError in DT_Util.py, line 335 (version 2.1.6 of Zope) Is PackageInfo's use of dtml-with blocking acquisition of FormatDate? The object returned for use with dtml-with in PackageInfo raises an AttributeError when trying to find FormatDate as an attribute, this is correct... what gives? Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ 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 UserSources
Title: RE: [Zope] LoginManager UserSources -Original Message- From: Kyler B. Laird [[EMAIL PROTECTED]] On Wed, 2 Aug 2000 15:13:45 -0400 you wrote: I've gotten it working with Postgres (with crypted passwords no less!) It took me a couple of weeks on and off to finally get that going. Yes, it was painful, especially having no prior experience with GUF (or much experience with Zope, for that matter...) I've not made it a very high priority, but I'm working on a LoginManager/PostgreSQL walkthrough hoping that I might save someone else some grief. That info should be easy to translate for any other datasource full of users you might have in mind. Interested? What I read: I see you're starving. Are you interested in some food? Well, probably more like, Are you interested in Spam and CheezWiz on saltines? ;-) Yes! I'm desperate for a way to use Oracle and/or X.500 databases for authentication (and authorization and ...). I would be happy to pay someone to hold my hand through creating such a product. (This is one of the first things I built into Apache so many years ago.) LM is a fantastically versatile product, which also makes it a potentially major PITA. Not having sufficient documentation makes it a recipe for insanity. (Save yourself, it's too late for me!) I'm a bit fuzzy on this, though. Shouldn't there be an easy way to generalize databases for this purpose? Why do we need PostgreSQL, Oracle, Gadfly, ... versions? I'd like to be able to just choose a connection ID and go. The gist of it is this: First you create (or use the default) UserSource. It's basically an empty box that is used to contain the various methods used to authenticate a user. You can have more than one UserSource, meaning you could have US's validating against SMB, LDAP, UNIX passwd, NIS, etc. (i.e., pretty much anything that Python will talk to) all running in conjunction. If validation fails against the first US, LM will simply drop through to the next and so on, until it either validates the user successfully, or drops out the bottom and denies access. You will first need to create a method for determining if a user exists. If the user exists, return 1, otherwise 0. A second method is required to take the entered username and actually look up a password, validate it against the password entered by the user and return success (1) or failure (0). A third method is used to look up the user's roles and return them as a list. These roles should match up against either default Zope roles, or preferably roles you've created for the purpose. You then lock down permissions on the desired folders/objects so that only users with the correct roles can access those objects. And lastly, a forth method is needed to return a list of valid net domains from which the user is allowed to log in. If you don't want to restrict logins by domain, then simply return an empty list. So, regarding your question about why should it matter which database, it doesn't. Not much anyways. US covers a much broader spectrum than just databases. As I indicated above, pretty much anything you could conceive of to store user data in, LM can interface to it. For some US's you may need to craft one or more external methods in Python. If it's a DBMS like Postgres, Oracle, MySQL, MSSQL, you will need a database connection method, and you will need SQL methods to fulfill the above four validation steps. Which brand of database you connect to is likely only going to affect minor issues of SQL syntax within your methods, if that. The way your user data is *structured* will have more impact than which database you use. That leaves out a ton of detail, but should hopefully answer your immediate questions and then some. Feel free to drop me a note at [EMAIL PROTECTED] and we can further discuss getting your LM up and running. -cw-
[Zope] FTP + PROBLEM(100) ZServer unhandled connect event
Hi! When connecting/working to/on Zope's FTP I get the following error(?)-message: 2000-08-03T00:32:51 PROBLEM(100) ZServer unhandled connect event Name resolve problem of my hostname? Thank you Marcus __ (0 Marcus Schopen //\ Bielefeld, Germany V_/_ __ ___ 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] Change db connect string in python or dtml
Magnus Heino wrote: How can I change the 'Database Connection String' and then then try to connect, either in dtml or python? I think I understand what you are asking, since I am developing a database app and have switched about 20 methods back and forth between two database servers... it gets tedious. I assume you want a more automated way to do this, and it should be possible to write a python script (External method?) to do this, although I'm not sure how you would find all the ZSQL methods where you would do this. Perhaps something like this (the find form): http://www.yourserver.com/yourfolder/manage_findResult?obj_metatypes%3Alist=Z+Gadfly+Database+Connectionobj_ids%3Atokens=obj_searchterm=obj_mspec=%3Cobj_mtime=search_sub%3Aint=1btn_submit=Find As a quick and dirty alternative (untested), just edit your connection parameters in your Mysql connector to point to the different server (you'll want to close the connection first, I expect). -- Craig Allen - Managing Partner - Mutual Alchemy Web Architecture - http://alchemy.nu ___ 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] Batchpeocessing with multiple selection
vikas wrote: display only 10 rows on the page.For this i am using batch processing. But it is giving me errors Such as key error [city],[state] and gives the url of my page where i m using batchprocessing. Can someone help me out how to overcome the problem this problem as this is very urgent for me. I think the varibles are not geting passed again when i click on next sequence. For an example, create a Z Search Interface going against your ZSQL method, them enhance it. As was pointed out, this runs the query again but since you can cache the results, the database is not necessarily hit again. -Craig -- Craig Allen - Managing Partner - Mutual Alchemy Web Architecture - http://alchemy.nu ___ 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] ZODBCDA 3.1.0b2 and Zope 2.2 as a Service on NT
+[ Jim Sanford ]- | | I am having problems with Zope 2.2 and ZODBCDA 3.1.0b2. When I start Zope manually |with the start.bat my ZSQL methods work fine. | When I start Zope as a service, every ZSQL method returns a SQL error that states |that the table I am looking for does not exist. | | Anybody out there know what's going on? You have some environment variables set, that aren't set when you start it as a service. Check the start.bat file, and also check your environment in a DOS Window for variables that could be needed. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[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] Retrieving the week number with DateTime
I suspect there is no 'standard' definition of week number. E.g. if the year begins on a Wednesday, is the following Monday part of week 1 or week 2? Once you decide, you can design a calculation starting with "some_date_object.dayOfYear()" which will give you the day number in the range 1 to 365 (or 366). The simplest algorithm would be to say days 1-7 are week 1, 8-14 are week 2, etc. In that case ((some_date_object.dayOfYear() - 1) / 7) + 1 (or in dtml) dtml-var "((some_date_object.dayOfYear() - 1) / 7) + 1" will compute a week number (in the range 1 to 53). If your weeks must begin on Sundays, or Mondays, or whatever, you'll have to first request the dow() from the first day of the relevant year, and do a calculation based on how far into the week the first calendar day of the year falls. If you want help with that, describe the algorithm you want to use. Good luck. Arjan Scherpenisse [EMAIL PROTECTED] writes: Hello, i want to retrieve the number of the week from a DateTime object. Is there any way to do this? I've looked through DateTime.py but i couldnt find anything usefull, is there some algorithm to get this? ___ 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] indirection problem
I *think* you've stumbled upon the way _.getitem behaves by default: (from the DTML reference) getitem(name,flag) Lookup a name in the namespace. If the value is callable and the flag is true, then the result of calling the value is returned, otherwise the value is returned. flag defaults to false. so "_.getitem(file, 1)" will probably do what you want. But that's also basically the same as dtml-var file -- did that not work for you? "Jacques Exelrud" [EMAIL PROTECTED] writes: I have in a dtml var the name of a dtml document I want to show as part of another document. If I do a dtml-var "_.getitem(file)" (where file is the said variable) I get the content of that document show but now as html but as text, things like have been translated to lt; Any sugestions ? ___ 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] dtml-sendmail Error
Anyone tell me what this error indicates? Error Value: (105, 'No buffer space available') -- Tim Cook -- FreePM Project Coordinator - http://www.freepm.org OS Healthcare Alliance 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] Retrieving the week number with DateTime
David Coe wrote: I suspect there is no 'standard' definition of week number. I asked this on a list with a bunch of accounting types and got the same reply. It is 'generally' associated with payroll or tax periods. Once you have a 'definition' for Jan 1 of the current year and the day of the week that 'your' week starts on then you could use David's suggestion(s). Either you or your customer has to define those two things first. -- Tim Cook -- FreePM Project Coordinator - http://www.freepm.org OS Healthcare Alliance 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] indirection problem
On Thu, 03 Aug 2000, David Coe wrote: I *think* you've stumbled upon the way _.getitem behaves by default: (from the DTML reference) getitem(name,flag) Lookup a name in the namespace. If the value is callable and the flag is true, then the result of calling the value is returned, otherwise the value is returned. flag defaults to false. so "_.getitem(file, 1)" will probably do what you want. But that's also basically the same as dtml-var file -- did that not work for you? Erm.. no, it's not. In my experience with getitem, i've found that: dtml-var file would be equivalent to: dtml-var "_.getitem('file',1)" not, as you said: dtml-var "_.getitem(file,1)" Note the quotes around file. Your method says "render the object named in file." The devil is in the details. (o8 Have a better one, Curtis. ___ 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] Acquisition Confusion :S
Evan Simpson wrote: Here are the two and a half rules for deriving acquisition from a dotted expression: 1. A.B == (B o A), where A is an unwrapped object 2. (self o parent).B == a. (self.B o (self o parent)), if B is found in 'self' b. (parent.B o (self o parent)), if B is found in 'parent' Who decided these rules and why are they like they are? So, is the working below now correct? (I feel like I'm back in School doing maths ;-) A has attributes B and C, C has attribute D A.B.C.D = (B o A).C.D - rule 1 = (A.C o (B o A)).D - rule 2b = ((C o A) o (B o A)).D - rule 1 = ((C o A).D o ((C o A) o (B o A))) - rule 2a = ((C.D o (C o A)) o ((C o A) o (B o A))) - rule 2a = (((D o C) o (C o A)) o ((C o A) o (B o A))) - rule 1 Now, if you apply simplification one way (top to bottom?) you get: = ((D o C) o ((C o A) o (B o A))) - simplification ...which can't be simplified, AKAICS However, if you simplify bottom to top, you get: = (( D o (C o A)) o ((C o A) o (B o A))) - simplification = ( D o ((C o A) o (B o A))) - simplification ..which is what you got. Where is the order of simplification defined? Is there a 'correct way'? Does it make a difference? (the above example would seem to suggest not, other than in searchign efficiency) ...and of course, how does Zope do it? snip In other words, aq_inner is the left-inner-most wrapper. Find the leftmost 'o' in the expression, and you've got it. Thanks, that's _much_ cleaer than the slides :-) cheers, Chris ___ 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] MethodGeddon
Shane Hathaway wrote: http://dev.zope.org/Wikis/DevSite/Proposals/DTMLExpressionSyntax Hmm. No, that's not really related. How so? Can you list the differences and if they're orthogonal try and explain it to me? You 'get' this but I sadly don't :( (yet.. ;-) http://dev.zope.org/Wikis/DevSite/Projects/PythonMethods/MethodObjectInterface Hurm, have I duplicated that with this? http://dev.zope.org/Wikis/DevSite/Proposals/GenericMethodInterface Just make sure they both refer to each other for now. Done :-) That's the plan. In fact, there is a difference between "templates" and "methods", so the base class might be called "MethodOrTemplate". What is the difference between methods and templates other than the scripting paradigm used? Whether it's template or procedural scripting (or functional or declarative ;-) shoudln't the underlying method structure be the same? I think that's what you're sugesting, so maybe just call it 'CallableObject' rather than "MethodOrTemplate"? It's not, really, but the current management interface is restrictive on the number of tabs you should use. Yes, I've noticed that too.. Perhaps management tabs should have the option of a 'second row' of tab? So, for example, you click on security, then the next row of tabs appears just below the first lot (different colour maybe?), in the security example the second row would contain: -'Permissions' (the default), -'Local Roles' -'Proxy Roles' (in the case of CallableObjects) -'User Defined Roles' So, you wouldn't need the varying 'Proxy','Defined Permissions' and 'Security' tabs that currently exist (didn't notice that 'Security chanegs its name to 'Defined Permissions' on methods until now, how confusing :S) which I think would make the interface a lot clearer... What do you think? cheers, Chris ___ 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] permissions/authorization on non ZClass/productobjects
Karl, Two things come to mind: First, make sure you're returning the instances in the context of their container, e.g. instead of: def returnstuff(self): class foo: pass return foo() do def returnstuff(self): class foo: pass return foo().__of__(self) You may also want to try the magic: def returnstuff(self): class foo: __allow_access_to_unprotected_subobjects__ = 1 pass return foo().__of__(self) in the class instances you return if nothing in them needs to be protected by permissions in any way. On 2 Aug 2000, Karl Anderson wrote: I'm having trouble with permissions and Python class instances that aren't part of the Zope permission mechanism. I'm creating plain Python class instances in the Python baseclass of a ZClass, and storing them in a list on the baseclass. The baseclass instantiates these instances and appends them to its list. The class is defined in the baseclass .py file. A method on the baseclass returns this list of instances, and I'm iterating over them in DTML and looking at their attributes - or trying to. I get an authorization prompt, which always gives me an auth error, even though the user can look at the ZClass that's returning the instances. I'm able to get around this by registering the plain Python class as a base class, subclassing them with a ZClass, and instantiating ZClass instances instead of baseclass instances. It seems like overkill, though (and I always thought that instantiating ZClasses in python was confusing). I don't need to expose methods or restrict access, just open the attributes to be used as DTML variables. Are there ways to do this without making full-fledged ZClasses out of my classes? Are there guidelines in general for using non-Zopish subobjects that get used by the publishing process? -- Karl Anderson [EMAIL PROTECTED] http://www.pobox.com/~kra/ ___ 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 )