[Zope-dev] Re: manage_workspace = index_html
* Bill Anderson ([EMAIL PROTECTED]) [010515 14:45]: With mozilla, please state the version/buildnumber/daily-build-date. I am using the latest 'release' and it works fine here, always has. Nightly build 2001051212 still exhibits the problem. 0.9 works fine. Ciao! -- Line Printer paper is strongest at the perforations. The Doctor What: Need I say more?http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] ZSQL and Normalized databases (or why ZSQL sucks)
* Adrian Hungate ([EMAIL PROTECTED]) [010420 05:06]: May be I am misunderstanding your problem here, but are you suggesting that SELECT tab1.col1 col1, tab2.col1 col2 FROM ... etc ... Does not expose 'col1' and 'col2' in the namespace for you? This is not my experience. Ok, I only have about 50 ZSQL methods on my intranet but they are all complex queries with column naming clashes. If it failed to work as you are suggesting, I would not have continued using Zope - Database connectivity was one of my criteria. I mean that: SELECT tab1.col1, tab2.col1 FROM ... etc ... Does not expose 'tab1.col1' and 'tab2.col1'. In otherwords, it doesn't gracefully handle name clashes. I realize that calling out the variable 'tab1.col1' out of the namespace is a pain, but (hopefully) in the future it would be made easier. Perhaps like so: dtml-var name='tab1.col1' (note single quotes) The normality (or abnormality) of your databases should make no difference, (Except to how complex your individual SQL statements become). What database are you running against? Maybe you have hit a database connector bug? Postgresql. I've tried all three of the DAs: Psyco, Popy and PostresDA [Nice Example Snipped] What DB was that? The syntax isn't what I expect from Postgres, Tandem and MySQL. As far as the 'foo=0' example, if you set foo to 0, and do nothing in between to change it, of course a test for not equal to 0 will fail, what would you expect? Here is the example again, but better: paramfoo:int=0/param dtml-if expr="foo 0"Not Zerodtml-elseZero/dtml-if If called like so: dtml-var expr="zsql_example(foo=200)" It will ALWAYS print 'Zero'. This makes it hard to do something with a param that defaults to nothing like: paramcategory_id=""/param SELECT url.id, url.name dtml-if category_id, xref_url_category.categoryid as category_id, /dtml-if FROM url dtml-if category_id, xref_url_category /dtml-if dtml-sqlgroup where dtml-if category_id dtml-sqltest category_id column="xref_url_category.categoryid" type="int" dtml-and xref_url_category.urlid = url.id /dtml-if /dtml-sqlgroup You can't even replace the param with "category_id:int=0" and then check for category_id = 0 in the dtml-ifs. I finished my project, so I'm happy for the moment. I have another ZSQL project (a DVD, Comic Book and Video tracker for my Manga and Anime), so I'll be back. Thanks to everyone who spent time to help out. Ciao! -- Who are you going to believe, me or your own eyes? -- Groucho Marx The Doctor What: Guru to the Godshttp://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC PGP signature
[Zope-dev] ZSQL and Normalized databases (or why ZSQL sucks)
Does any one have an example of ZSQL being used witha normalized database? Or is ZSQL just useless? Near as I can tell, between: * Broken type marshalling * Loosing the variable between the form and dtml-if * Inability to handle table.field names for variables * And enough flexibility to work around the above problems This makes ZSQL extreamely nasty, and impossible to use with a normalized database. What's the point? ZSQL sucks, how do I talk to the DB directly? Yeah, I keep almost getting this to be useful. But damn it if I don't keep hitting a brick wall. And there are no complete examples or demos that I can find to load up. Irritatedly yours, DocWhat -- I don't want to achieve immortality through my work... I want to achieve it through not dying. -- Woody Allen The Doctor What: A really hip dude http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC PGP signature
Re: [Zope-dev] ZSQL and Normalized databases (or why ZSQL sucks)
* The Doctor What ([EMAIL PROTECTED]) [010419 11:57]: Does any one have an example of ZSQL being used witha normalized database? Or is ZSQL just useless? Near as I can tell, between: * Broken type marshalling * Loosing the variable between the form and dtml-if * Inability to handle table.field names for variables * And enough flexibility to work around the above problems This makes ZSQL extreamely nasty, and impossible to use with a normalized database. What's the point? ZSQL sucks, how do I talk to the DB directly? Yeah, I keep almost getting this to be useful. But damn it if I don't keep hitting a brick wall. And there are no complete examples or demos that I can find to load up. Irritatedly yours, DocWhat I would like to apologize for being particularly pissy. Things are quite as bad as I say up there... My third point is only half true. I can have SQLTEST specify a column name (aka a field): dtml-sqltest somevarname column="SQLTABLE.sqlfield" type... This makes things work MUCH better. So there are work arounds. But this doesn't excuse this not working: SELECT table.field1, table.field2 FROM and then: dtml-var name="table.field1" --doesn't work dtml-var name="field1" -- does work I know that the '.' has a special meaning, but there should be ways around this if the use wants. I still would love some examples. Do people end up with 4 ZSQL objects per thing they manipulate in their database?: UPDATE, SELECT, INSERT and DELETE? Or do they mix them somehow? Ciao! -- Who are you going to believe, me or your own eyes? -- Groucho Marx The Doctor What: Need I say more?http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC PGP signature
Re: [Zope-dev] ZSQL and Normalized databases (or why ZSQL sucks)
* Andy McKay ([EMAIL PROTECTED]) [010419 14:26]: Whats the problem with ZSQL? It calls a sql db with the sql statement, what more could you want. If you want more, use python. How?!?! Documentation? Examples? Ciao! -- A fail-safe circuit will destroy others. -- Klipstein The Doctor What: Guru to the Godshttp://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC PGP signature
Re: [Zope-dev] ZSQL and Normalized databases (or why ZSQL sucks)
* Paul Erickson ([EMAIL PROTECTED]) [010419 17:02]: The Doctor What wrote: * Loosing the variable between the form and dtml-if I don't understand this. I'm assuming that you are losing values that are not in your argument list. All you have to do is add the arguments. That isn't what I mean. Try this (typed in, so it may need to be adjusted): paramfoo=0/param dtml-if expr="foo != 0"Life is good/dtml-if You'll NEVER get Life is good to print out. EVER. This is because ZSQL is setting foo to 0. But dtml-var and dtml-sqlvar both work. * Inability to handle table.field names for variables * And enough flexibility to work around the above problems This makes ZSQL extreamely nasty, and impossible to use with a normalized database. Database normalization isn't really an issue. It sounds like you're really just having problems with the syntax of joins. Nope, can do joins. Been doing joins (mainly inner). Not the problem. The problem is that if I have tables like: Table1 -- id name desc Table2 -- id Table1ID -- Foreign Key thrown in for fun. name desc And I join them, then I MUST rename all the selects using AS: select Table1.id as id1 Table1.name as name1 ...etc Because I can't have zsql put the variables in the caller's namespace as "Table1.id". It puts them in as "id" (without the AS). Fortunately, I found the column for sqltest (which is the other end of ZSQL): dtml-sqltest id1 column="Table1.id" What's the point? ZSQL sucks, how do I talk to the DB directly? Grab the Python database adapter and write some python classes or external methods to do what you need. Can I use them from a python script? If not, what's the point? I mean: External methods are nice to have when you have *no other choice*, but they aren't something I'd want to debug and deal with for object. This makes things work MUCH better. So there are work arounds. This isn't a work-around, it is the way that it is intended to be used. I didn't see a single example of it. The Zope Book didn't mention this at all (except as a single line reference). I would *never* have gone looking for the word column. Why? It's a field! Again, I think that it's a matter of understanding how ZSQL works, rather than a limitation of ZSQL. If you have column name conflicts, you can always use something like: SELECT a.field as a_field, b.field as b_field FROM ... Then refer to them in dtml like dtml-a_field; or dtml-var name="a_field" Right, but you still have to do extra work to get them back into a ZSQL object. column lets you do that. It's got no examples to help out with. It's documented once. I didn't see it. Life is better now. I still would love some examples. Do people end up with 4 ZSQL objects per thing they manipulate in their database?: UPDATE, SELECT, INSERT and DELETE? Or do they mix them somehow? I typically wind up with a ZSQL method for each of the CRUD operations. Sometimes I have separate selects methods for more complex joins, if the DTML code gets too ugly when I try to combine them into a single method. Example of a fairly typical join statement (for MySQL database): Arguments- begin_date:date end_date:date="2037-01-01" SELECT search_string, search_result, search_date, result_category, legal_category.name FROM search_log LEFT JOIN legal_category ON search_log.result_category=legal_category.code dtml-sqlgroup required where dtml-sqltest name="begin_date" op="gt" type="nb" column="search_date" dtml-and dtml-sqltest name="end_date" type="nb" op="lt" column="search_date" optional /dtml-sqlgroup Hey! An example! Good Luck Thanks. So I'm still having trouble. I can't get any of the list examples to work. I build a select multiple list, and then try to dtml-in on it. It doesn't seem to work. REQUEST shows in it th other and form namespaces, as a list, but I can't actually dtml-var it or anything. Example: qdtml-var dalistp br dtml-in VirtualRootPhysicalPath ddtml-var sequence-itemb /dtml-in hr dtml-var REQUEST If you call this with this URL (substitute as needed): http://docwhat.gerf.org:9673/links/test?dalist%0D%0A%3Alist=1dalist%0D%0A%3Alist=3dalist%0D%0A%3Alist=8 Which is the URL pattern formed by a SELECT name="dalist:list" multiple Then you get errors on dalist. The examples at http://www.zope.org/Members/AlexR/SelectionLists Don't work as exactl above. Help? Ciao! -- Outside of a dog, a book is a man's best friend. Inside a dog it's too dark to read. -- Groucho Marx The Doctor What: Need I say more?http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC PGP signature
Re: [Zope-dev] ZSQL and Normalized databases (or why ZSQL sucks)
Thanks. So I'm still having trouble. I can't get any of the list examples to work. I build a select multiple list, and then try to dtml-in on it. It doesn't seem to work. REQUEST shows in it th other and form namespaces, as a list, but I can't actually dtml-var it or anything. Example: qdtml-var dalistp br dtml-in VirtualRootPhysicalPath ddtml-var sequence-itemb /dtml-in hr dtml-var REQUEST If you call this with this URL (substitute as needed): http://docwhat.gerf.org:9673/links/test?dalist%0D%0A%3Alist=1dalist%0D%0A%3Alist=3dalist%0D%0A%3Alist=8 Which is the URL pattern formed by a SELECT name="dalist:list" multiple Then you get errors on dalist. The examples at http://www.zope.org/Members/AlexR/SelectionLists Don't work as exactl above. Help? My problem. I decoded the %0D and %0A (newline and space) and figured out that I foo-barred a bit of code. I'm happy again. It works great with only the %3A. It *is* weird that it looked correct on the REQUEST output. :-S Thanks anyway. Ciao! -- If you want to make God laugh, tell him about your plans. -- Woody Allen The Doctor What: Not that 'who' guy http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC PGP signature
Re: [Zope-dev] ZSQL and Normalized databases (or why ZSQL sucks)
* Casey Duncan ([EMAIL PROTECTED]) [010419 17:45]: Reason: foo=0 is actually foo='0'. foo:int=0 should work like you want. Same behaviour. I opened a bug in the collector a while ago about this: http://classic.zope.org:8080/Collector/2053/view A related bug: http://classic.zope.org:8080/Collector/2045/view This is a function of your field naming convention more than anything. Granted you don't always have control over that. I am surprised that name="spam.eggs" doesn't work on sqltests (it works everywhere else). Are you explicitly saying name="..."? that could be the problem, bare quoting assumes expr="..." where periods are significant. It works with sqltest, actually. But since a lot of people have examples of chaining the namespaces, this breaks that and adds more work since you can't alias (via AS) to dotted names. Can I use them from a python script? If not, what's the point? I mean: External methods are nice to have when you have *no other choice*, but they aren't something I'd want to debug and deal with for object. Python scripts are quite helpful for calling ZSQL methods. Just remember to pass REQUEST or the arguments explicitly. Yeah, I like that, but it's still not perfect, and the docs are incomplete and scattered. We need a system to pull together like documents at zope.org Ciao! -- Line Printer paper is strongest at the perforations. The Doctor What: Not that 'who' guy http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC PGP signature
Re: [Zope-dev] FTP interface being worked on?
* Fred Wilson Horch ([EMAIL PROTECTED]) [010312 10:27]: Another serialized format that all Zope objects support is the XML interface, which exposes all the objects' guts. With XML-RPC I envisioned being able to improve on the FTP interface by adding things like md5 checksums to determine if the local and remote objects are in synch. I haven't looked too deeply, but presumably via XML you could support all of the management functionality that is currently provided by the HTML management interface. So you could build a client with a rich feature set for managing Zope objects. An idea might be to just impliment the rsync protocol, which does a lot of this already. Ciao! -- "Laugh while you can, monkey boy!" --Dr. Emilio Lizardo (Adventures of Buckaroo Banzai) The Doctor What: fill in the blank http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] Problem with SiteAccess
* Leonardo Graf ([EMAIL PROTECTED]) [010104 06:42]: By the way, I probably want to serve multiple hosts from one later on, so it would be nice to have an example of a SiteAccess rule. Here is a messy one. There is another with the SiteAccess2 documentation someplace... http://docwhat.gerf.org:9673/siteid/view_source Ciao! -- "Apparently if you play the Windows NT CD backwards you hear satanic The Doctor What: Need I say more?http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] Problem with SiteAccess
* Leonardo Graf ([EMAIL PROTECTED]) [010103 09:16]: Hello, I'm trying to use the SiteAccess Product as discribed in the HowTo: Using Apache with ZServer (NOT Zope.cgi). Unforunately things don't work as described. My ZServer is listening on www.myserver.com:9080/somesite. I would like to be able to access the ZServer through apache via the URL www.somesite.com (to do virtual hosting). The ProxyPass directives work well (the pages get served properly), but the URL's in my pages still contain the complete URL's of the ZServer, like img src="http://www.myserver.com:9080/somesite/images/some.gif" instead of img src="http://www.somesite.com/images/some.gif". The same is true for normal links. Ok, it's not so bad, things work (no broken links), but it is a little bit ugly. I thought the SiteAccess Product should handle these problems, by putting a SiteRoot object in the somesite folder. Or do I have to write an AccessRule ? And how would that look like ? Thanks a lot, regards, Leonardo Graf It sounds like your SiteRoot object doesn't have "Base" (aka the Base URL) set correctly. It should be set to: http://www.somesite.com The SiteAccess Rule is only needed if you have *multiple* hosts served out from one host. You sound like you only have one. Ciao! -- There is no sweeter sound than the crumbling of your fellow man. -- Groucho Marx The Doctor What: A really hip dude http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] DTML Documents == DTML Methods that are anchored?
What are the differences between DTML Documents and Methods internally? I was just thinking about the problems every new user (and experienced users, every so often) have regarding DTML Documents vs DTML Methods. Aren't they really the same except that Documents are anchored (ie, don't allow aquisition from the caller, but only from the location of the Document)? If that is true, couldn't they be simplified as a (example name) DTML Object that had an "anchor" flag? Just a thought. Ciao! -- So Buddha walks into a pizza parlor and says: "Hey, make me one with everything." The Doctor What: Need I say more?http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] standard_error_message woes!
* Jason Byron ([EMAIL PROTECTED]) [001223 01:04]: There are two files: /lib/python/ZPublisher/HTTPResponse.py /lib/python/OFS/Application.py that contain error pages hard coded in. you get the HTTPResponse.py code for errors like: 403: 'Forbidden', 404: 'Not Found', 405: 'Method Not Allowed', stuff like that. This error code is not parsed like normal dtml and so you can't simply replace it with: """dtml-var standard_error_message""" I think this is because these are standard error codes that have to do with the web server and they must work even if the object database doesn't. There must be a more detailed reason why these errors aren't connected to the db, but someone else will have to answer that one. :) Well I'm very tempted to start mucking in and letting it call an 'external' python method of some sort. At the very least, I'd like the page to be able to look up a list of 'words' and redirect to a webpage if it matches Like: http://site.org/fish It finds the keyword fish, and sees there is a legit URL: http://site.org/software/beta/fish And redirects it. But that'd need t ZCatalog at least. G. Ciao! -- Chemist who falls in acid is absorbed in work. The Doctor What: Second Baseman http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] standard_error_message woes!
Gaaah! I'm totally miffed/pissed/confused/sad about this. I have Zope 2.2.4, and if I go to: http://docwhat.gerf.org:9673/fish (an non-existant object) I get the HTTPResponse.py _error_html() function as called by notFoundError(). Now, if I go to: http://zope.org/fish I get a nice fully customized error page, which includes where I *might* have ment to go What's going on! According to http://www.zope.org/Members/JohnC/StandardErrorMessage I should be able to get this to work, he has a dtml-if "error_type=='NotFound'"... example even! Gh!!! *goes off in a corner, pulling out hair while quitely sobbing* -- "This is the Steve Allen show. To those of you lunging for the channel selector, 'Good Night!'" The Doctor What: Un-Humble http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] SiteAccess and Roles
* Michael Bernstein ([EMAIL PROTECTED]) [001215 10:05]: The Doctor What wrote: Ok, then problem may be in your SiteRoot. What are the settings there? Really? I wouldnt't have suspected the SiteRoot. lesse Interesting. It now works, if I fill in the Base. Before, I had *nothing* in the SiteRoot access. Simply putting a Base in and bing-bang-boom, it works! Thanks for the help. Though the impression I got from the documentation is that this should have worked with the defaults Perhaps I don't understand exactly what Base and Path in a SiteRoot actually do Ciao! -- A fail-safe circuit will destroy others. -- Klipstein The Doctor What: Not that 'who' guy http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] IMPORTANT! Zcatalog path handling changes in 2.3
* Christopher Petrilli ([EMAIL PROTECTED]) [001218 14:13]: PLEASE take a look at this, and provide feedback ASAP. I would happy to, it looks like it does what I need (having siteaccess). However, I don't see a clear cut description what's changing and how. What needs to be done (in easy to understand language) to make sure it all goes smooth, etc. It's a big update, with lots of files. Will this work with 2.2.4? Is it dangerous? If you're asking for guinea pigs (bweep!) then I'm not sure I should be it, as I'm still trying to figure out what's going on in many ways. Ciao! -- There are no bad ideas, just bad jokes. The Doctor What: Guru to the Godshttp://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] SiteAccess and Roles
* Michael Bernstein ([EMAIL PROTECTED]) [001214 01:06]: I read your access rule, and it seems like you've got it set up to ignore the gTLD, so that www.gerf.org and www.gerf.com etc. get routed to the same object automatically. Is that correct? Yes. I have several sites that use that feature, and none that don't. It's actually really handy, as it's one line in my siteaccess rule vs. several in my apache config. :-) Ciao! -- There is no sweeter sound than the crumbling of your fellow man. -- Groucho Marx The Doctor What: fill in the blank http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] Important Fix for Zope 2.2.x
* Evan Simpson ([EMAIL PROTECTED]) [001210 10:27]: Thanks to Jeff Ragsdale, we've finally been able to kill a longstanding bug that allows POST requests to interfere with each other. Symptoms include corrupted or aborted File and Image uploads, and stupid-log messages about "AttributeError: data" killing threads. The attached HTTPServer.py is valid for all Zope 2.2.x versions. I am posting the patched file for earlier Zope versions separately. Will these be released as Hotfixes? Or just new versions? Or is this it? Ciao! -- Little children, keep yourselves from idols -- St John, Ist century The Doctor What: Un-Humble http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] SiteAccess and Roles
I have site access running, but I apparently don't fully grok roles. I have a directory layout like so: /ZopeRoot /site1 /site2 /site3 /user_acl(2) /user_acl(1) My site access rule is at: http://linuxasm.gerf.org:9673/siteid/view_source All the site[123] directories are SiteRooted and work fine. If I add user as manager to user_acl(1) they have essentially 'root' access. They can do everything. What do I have to do to give site3 to a specific user without giving them access to everyone else? I tried both Owner and Manager roles in user_acl(2) but it doesn't work! What am I doing wrong? Ciao! -- "If only you'd listened to me, I could have saved you from all that yukkiness." --Kryten (Red Dwarf) The Doctor What: "What, Doctor What" http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] New version of book uploaded
Is there a way to DL the whole book for offline reading? It doesn't wget or curl very well (due to zope playing aquisition games)... An example is one page links to an image: http://www.zope.org/Members/michel/ZB/SimpleExamples.html/Figures/5-7.png Works in zopenot on Linux's ext2 Ciao! -- Cthulhu for President! (If you're tired of choosing the lesser of two evils.) The Doctor What: Un-Humble http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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: Not a good example...
I've been looking around for examples of certain objects and such. One simple example is a URL object. Zope.Org *has* this object (Link) and it is fairly nifty, even if it isn't documented (ie, it's usage etc.) but I can't find the *source* for this object anywhere! All I want is to be able to have a Link object on my Zope engine, with possibly a minor change or two, but I can't find out where to get it anyplace. This isn't the only example. I have software that I want to distribute, but I can't get the source for the Software Product/Distribution objects either! I can get the source for DTML Documents, but it doesn't do much good if they make extensive use of objects that I can't get the source for. I would like to enter a plea for *someone* at DC/Zope.Org to fix this situation! BTW: I have a better view_source DTML Method: http://docwhat.gerf.org:9673/view_source/view_source Ciao! -- Death is a once in a lifetime experience. The Doctor What: A Holtje Production http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] python methods
* Tres Seaver ([EMAIL PROTECTED]) [001130 09:06]: Chris Withers [EMAIL PROTECTED] wrote: 'lambda' is actually a keyword, not a function, and hence works fine in PM0.1.7. 'map()', 'filter()', et al., were deemed to be susceptible to being used in DOS attacks, and hence are not permitted in through-the-web code (they would need to be added to the '_' namespace, like 'str()', et aliae). For those of us who are trying to figure out everything at a low level, where would this be in the source? Ciao! -- When a trainstation is were a train stops what is a workstation? The Doctor What: Un-Humble http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] AND operator and ZCatalog
* Michel Pelletier ([EMAIL PROTECTED]) [001128 15:26]: Text indexes implicitly Or their search terms if no operator is specified. Don't ask me why, I don't know. if you want to change this behavior, edit lib/python/SearchIndex/UnTextIndex.py on or about line 451, change the 'default_operator' argument to the query method to And: def query(self, s, default_operator = Or, ws = (string.whitespace,)): to: def query(self, s, default_operator = And, ws = (string.whitespace,)): That's more like what I wanted. :-) Ciao! -- "You know, if you shoot me, you're liable to lose a lot of those humanitarian awards." --Fletch (Fletch) The Doctor What: A Holtje Production http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] view DTML source
Anders Eriksson ([EMAIL PROTECTED]) asked about view_source I'm not sure exactly what's going on there (others have posted possible explinations) but I have something that solves some of my problems with view_source: http://docwhat.gerf.org:9673/view_source/view_source My view_source checks the meta_types and tries to act accordingly. BTW: Does anyone have a 'highliter' I can run the document_src output through? Sort of like the Show_Source() function in PHP? Of course, I'd want to tweak it to add HREF's for URLs (I have a pending bug in PHP about thatNow I don't really care, my site's going to be Zope soon;) Ciao! -- Famous Last Words: That was the wrong button! The Doctor What: Un-Humble http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] ZCatalog: setting default to AND (not OR).
All good usability books (I'm going to just cite one: "Designing Web Usability: The Practice of Simplicity" by Jakob Nielsen http://www.useit.com/jakob/webusability/ ) say searches should be ANDed by default. ZCatalog is ORed by default. How do I change this behavior? Ciao! -- Room Service? Send up a larger room. -- Groucho Marx The Doctor What: Guru to the Godshttp://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] ZCatalog: setting default to AND (not OR).
I'm sorry. I seem to have not explained myself very well. I want ZCatalog to use AND by default. I think the extended behaviour, being able to AND and OR keywords together is fine. I'm only concerned with the default behaviour (with *no* OR or AND keywords). When I first used zope.org's search engine, I couldn't figure out why if searched for "zcatalog siteaccess" it gave me (seemingly) every article on the site except the one(s) I wanted. It's because I expected AND to be the default (the union) of the two terms, not an OR list. Frankly, I don't think OR is useful at all by it self. It's usually with an AND that it's most useful. But that's just my humble opinion. Oh wait, I don't do humbleso that's just my opinion. ;-) I wish everyone a happy holiday, whether it's Thanksgiving or "Laborday/Thanksgiving" (as NPR said Japan was having). Ciao! All good usability books (I'm going to just cite one: "Designing Web Usability: The Practice of Simplicity" by Jakob Nielsen http://www.useit.com/jakob/webusability/ ) say searches should be ANDed by default. ZCatalog is ORed by default. How do I change this behavior? Ciao! -- Room Service? Send up a larger room. -- Groucho Marx The Doctor What: Guru to the Godshttp://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC -- Now is the time for all good men to come to. -- Walt Kelly The Doctor What: fill in the blank http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] SiteAcess (Debian Fix)
The bug (number 76658) is listed on Debian's site: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=76658repeatmerged=yes The fix (I had forgotten what it was) is stupidly simple: mkdir /usr/lib/zope/lib/python/Products/SiteAccess/help A better fix is to fix ProductContext.py is lib/Python/App. I have an attached patch, but it doesn't seem like it's the right way to fix it. BTW: While you're making empty directories, you should probably make: /usr/lib/zope/lib/python/Products/PlugIns/help Because in the Debian package, it has the same problem. Ciao! -- "Duct tape is like the force. It has a light side, and a dark side, and it holds the universe together ..." -- Carl Zwanzig The Doctor What: Un-Humble http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC --- ProductContext.py.orig Fri Nov 17 11:05:00 2000 +++ ProductContext.py Fri Nov 17 11:05:06 2000 @@ -309,38 +309,33 @@ """ help=self.getProductHelp() path=os.path.join(Globals.package_home(self.__pack.__dict__), directory) -try: - -# test to see if nothing has changed since last registration -if help.lastRegistered is not None and \ - help.lastRegistered = DateTime(os.stat(path)[stat.ST_MTIME]): -return -help.lastRegistered=DateTime() -if clear: -for id in help.objectIds('Help Topic'): -help._delObject(id) - -for file in os.listdir(path): -ext=os.path.splitext(file)[1] -ext=string.lower(ext) -if ext in ('.dtml',): -ht=HelpTopic.DTMLTopic(file, '', os.path.join(path,file)) -self.registerHelpTopic(file, ht) -elif ext in ('.html', '.htm'): -ht=HelpTopic.TextTopic(file, '', os.path.join(path,file)) -self.registerHelpTopic(file, ht) -elif ext in ('.stx', '.txt'): -title=string.split(open(os.path.join(path,file),'rb').readline(), ':')[0] -ht=HelpTopic.STXTopic(file, title, os.path.join(path, file)) -self.registerHelpTopic(file, ht) -elif ext in ('.jpg', '.gif', '.png'): -ht=HelpTopic.ImageTopic(file, '', os.path.join(path, file)) -self.registerHelpTopic(file, ht) -elif ext in ('.py',): -ht=APIHelpTopic.APIHelpTopic(file, '', os.path.join(path, file)) -self.registerHelpTopic(file, ht) -except OSError, (errno, text): -from zLOG import LOG, WARNING -LOG("Zope", WARNING, text + ": " + path) - +# test to see if nothing has changed since last registration +if help.lastRegistered is not None and \ +help.lastRegistered = DateTime(os.stat(path)[stat.ST_MTIME]): +return +help.lastRegistered=DateTime() + +if clear: +for id in help.objectIds('Help Topic'): +help._delObject(id) + +for file in os.listdir(path): +ext=os.path.splitext(file)[1] +ext=string.lower(ext) +if ext in ('.dtml',): +ht=HelpTopic.DTMLTopic(file, '', os.path.join(path,file)) +self.registerHelpTopic(file, ht) +elif ext in ('.html', '.htm'): +ht=HelpTopic.TextTopic(file, '', os.path.join(path,file)) +self.registerHelpTopic(file, ht) +elif ext in ('.stx', '.txt'): +title=string.split(open(os.path.join(path,file),'rb').readline(), +':')[0] +ht=HelpTopic.STXTopic(file, title, os.path.join(path, file)) +self.registerHelpTopic(file, ht) +elif ext in ('.jpg', '.gif', '.png'): +ht=HelpTopic.ImageTopic(file, '', os.path.join(path, file)) +self.registerHelpTopic(file, ht) +elif ext in ('.py',): +ht=APIHelpTopic.APIHelpTopic(file, '', os.path.join(path, file)) +self.registerHelpTopic(file, ht)
Re: [Zope] SiteAcess (Debian Fix)
I have submitted this bug to the Zope Bug system. Ciao! -- "Duct tape is like the force. It has a light side, and a dark side, and it holds the universe together ..." -- Carl Zwanzig The Doctor What: fill in the blank http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] ZopeBug: No Last-Modified for misc_/.../*.gif objects!!!!
* Dieter Maurer ([EMAIL PROTECTED]) [001116 16:17]: The Doctor What writes: I was looking at the cacheability of my website in zope, and saw that the misc_/OFSP/*.gif images (as in the icon objects) are NOT cacheable because they don't return *any* date info. If they *at least* returned a Last Modified, they'd be cacheable. My browser (Netscape 4.74) happily cashes these images. It is not clear, why a "Last Modified" header should be a precondition for caching. I would expect it is only necessary, if you told your browser (or other cache) to verify freshness for each request. If the browser has a "Last Modified", it sends an "If-Modified-Since" header and get a 304 response, if not. Ah, but you see, I have a caching proxy! Squid. My netscape cache's the images (ie, writes them to disk) but they are overwritten everytime. Since I connect via modem, I can watch them repopulate slowly. Even if Netscape does hold on to them without a caching proxy, we couldn't rely on that behavior. This problem makes 'icon' an undesireable object to use. Ciao! -- King: Chiswick, remind me to send flowers to the King of France in sympathy for the death of his son. Chiswick: The one you had murdered, My Lord King: Yes, that's the fellow. --Blackadder I The Doctor What: fill in the blank http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] SiteAcess
* Mechtild Hofmann ([EMAIL PROTECTED]) [001116 13:53]: We use Zope 2.2.2. and Linux. Guten tag! If the your linux distrobution os Debian, I know what the problem is, and can mail you a fixed debian that should work till the Debian maintainer fixes the problem. Ciao! -- "We can go back to dallas, November 22, 1963, stand on the grassy knoll and shout,'DUCK!!'" -Kryten (Red Dwarf episode: Timeslides) The Doctor What: Not that 'who' guy http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] ZopeBug: No Last-Modified for misc_/.../*.gif objects!!!!
I was looking at the cacheability of my website in zope, and saw that the misc_/OFSP/*.gif images (as in the icon objects) are NOT cacheable because they don't return *any* date info. If they *at least* returned a Last Modified, they'd be cacheable. I looked at the Zope Source and it looks like misc_.py just calls ImageFile objects. Why aren't the ImageFile objects setting these header info bits correctly? I'm not very knowledgable about Zope inside, but this seems like it should be happening. A side effect of fixing this problem would be that the manage screens would suddenly work much faster since the icons would not need to be reloaded EVERY time!! Here is the HEAD info from two ImageFile objects. The first is in the folder images which has a SiteAccess object that forces the Cache-Control object, a normal Image would not have the Cache-Control line. The second is a misc_.py object: checkhead http://docwhat.gerf.org:9673/images/thedoctorwhat HTTP/1.0 200 OK Server: Zope/Zope 2.2.2 (source release, python 1.5.2, linux2) ZServer/1.1b1 Date: Wed, 15 Nov 2000 19:06:23 GMT Cache-Control: public, max-age=86400 Connection: close Content-Type: image/png Content-Length: 21717 Last-Modified: Wed, 15 Nov 2000 03:14:17 GMT checkhead http://docwhat.gerf.org:9673/misc_/OFSP/Folder_icon.gif HTTP/1.0 200 OK Server: Zope/Zope 2.2.2 (source release, python 1.5.2, linux2) ZServer/1.1b1 Date: Wed, 15 Nov 2000 19:06:37 GMT Connection: close Content-Type: image/gif Content-Length: 903 I have attached by stupid checkhead program. Ciao! -- I'd horsewhip you if I had a horse. -- Groucho Marx The Doctor What: Second Baseman http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC #!/usr/bin/perl -w $| = 1; use strict; delete $ENV{'http_proxy'}; my $wget = "wget -q -s -O - " . join( ' ', @ARGV ) . "|"; open( FOO, $wget ) or die "Unable to run ``$wget'': $!"; while( FOO ) { if( /^\s*$/ ) { last; } print $_; } close( FOO );
Re: [Zope-dev] PythonMethods: Can't Slice context.REQUEST.PARENTS
I got a reply from someone working on it. It seems the answer is that it doesn't exist yet, pending a change in ZOPE itself. So I have to pass it in: dtml-var expr="breadcrumbs(this())" Not a big deal, but annoying. I'll make the source available as soon as I coble together a view-source method. :) Ciao! -- "Well, given that the universe is infinite, and that God is infinite, and that God created the universe, (pause) would you like a piece of toast?" --Talkie Toaster (Red Dwarf episode: Dimension Jump) The Doctor What: A Holtje Production http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] PythonMethods: Can't Slice context.REQUEST.PARENTS
* Dieter Maurer ([EMAIL PROTECTED]) [001112 17:12]: The Doctor What writes: ... Now here is my next problem. Using context.REQUEST.PARENTS doesn't give me the DTML Document that called me (so to speak). I have: /test/new/foo_html My PARENTS shows Zope, Test, and New, but doesn't show foo_html. "PARENTS" contain the objects from root up to but excluding the final object on the URL. You may try to reference the final object by "this()". Dieter, thanks for your help, but I'm unsure where to use it. Using context.this().id, self.this().id, m_self.this().id all get me the same things: Folder, Zope, and my method. None give me the DTML Document foo_html. This would seem to be an important thing. To re-iterate in a different way, it's the same as trying to do: dtml-var id in a DTML Method that is called by a DTML Document. You expect the id of the DTML Document that called you, not the Folder that the DTML Document resides in. Did you mean to do a this().id? That doesn't work at all, it gives me a Name Error. There *must* be a way to do this. Ciao! -- It has just been discovered that research causes cancer in rats. The Doctor What: A Holtje Production http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] PythonMethods: Can't Slice context.REQUEST.PARENTS
Okay, I figured that bit of braindeadness out (I just use a range that goes backwards, no .reverse() so everything is left as is. Now here is my next problem. Using context.REQUEST.PARENTS doesn't give me the DTML Document that called me (so to speak). I have: /test/new/foo_html My PARENTS shows Zope, Test, and New, but doesn't show foo_html. Is this because my PythonMethod is Internal vs. External? I didn't see any descriptions of what the differences are. The DTML Method version of my code can see the id/title of the foo_html via 'id', 'title' and 'title_or_id', but under python I just get: self.title_or_id() -- Zope, the folder that my method lives at m_self.title_or_id() -- Breadcrumbs (my method) context.title_or_id() -- New, the folder foo_html lives at And I have no idea what _ is for Any help is appreciated. Ciao! -- "Well Pumpkins, It looks like it comes down to that age old decision: Style or Substance. Hmm." --Vida and the "Girls" ( To Wong Foo, Thanks for everything, Julie Newmar ) The Doctor What: "What, Doctor What" http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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] PythonMethods: Can't Slice context.REQUEST.PARENTS
I cannot slice context.REQUEST.PARENTS The reason I want to do this is to travel up the URL tree for a breadcrumb navigation do-hicky. I want to slice it so I can make a copy because if I just do ...reverse() on it, I screw up everything afterwards. It says I'm unauthorized (Guarded.py __careful_getattr__) so I assume this is a feature. I suppose I can just .reverse() it back again at the end, but it seems.wrong some how. Attached is my code at the moment...it sucks, I know. This is python project numero uno and zope project duo... If anyone has a better example of how to hand text (I'm using buff and returning it) back, I'd appreciate it. I'm much to tired, so off I go to bed... Ciao! -- Man is the best computer we can put aboard a spacecraft ... and the only one that can be mass produced with unskilled labor. -- Wernher von Braun The Doctor What: fill in the blank http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC paramsbuff='',lose=1/params """ This is a breadcrumb generator. A breadcrumb trail is what you get at yahoo as you traverse downward in their directory structure: computers-video-blah-etc. It shows you where you are in your site. My breadcrumbs shall follow these rules: 1) The current DTML Document shall be the last item. It will not be a link. 2) If the current DTML Document isn't index_html, then the parent crumb will be the index_html for the folder 3) All crumb names are overridable by setting the 'nickname' attribute. 4) The root folder will always be called "Home" Ciao! [EMAIL PROTECTED] """ ## Start being crumb-y! buff = "\n!-- start Breadcrumbs --\n[ " # Get the list of parents and reverse it list = context.REQUEST.PARENTS[:] list.reverse() # Iterate over all the parent objects, skipping the 'current'one # (see below for dealing with that for x in range(lose,len(list)-1): obj = list[x] url = obj.absolute_url() name = obj.title_or_id() buff = "%s\n - a href='%s'%s/a" % (buff, url, name) # Deal with the 'current' object(s) obj = list[-1] buff = "%s\n'%s'" % (buff, obj) buff = "%s\n'%s'" % (buff, context.id) if obj != context: buff = "%s\n - '%s'" % (buff, obj.title_or_id()) buff = "%s\n - '%s'" % (buff, obj.title_or_id()) buff = buff + "\n]\n!-- end Breadcrumbs --\n" return buff
Re: [Zope] why DTML confusing
* peter bengtson ([EMAIL PROTECTED]) [001110 10:40]: It's a give-and-take I think. I had the same confusion as you have right now, but after a while you learn this syntax pretty well. This is the same as with all syntax, and as soon as you have learned the basics the rest is easy and from then on a matter of learning how to use extensive functions and methods. Considering that DTML is supossed to be for web/html writers, *not* for programmers, I think that's not a good attitude to take. I don't want web-writers having to figure out that to access a variable, *that was being use a second ago with no extra syntax* suddenly needs _[''] wrapped around it. It doesn't make any sense UNLESS you know what's going on underneith. And since the whole attitude for Zope is, "do it right". I'd say this needs to be addressed at some point. Ciao! -- Although the moon is smaller than the earth, it is farther away. The Doctor What: A really hip dude http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] still problems w/ SiteAccess 2.0.0b3
I'm curious, you posted a message about SiteAccess. I have the same problem, with Debian (Zope 2.2.2 and I've tried SiteAccess 2.0.0b3 and b4). It producing the same errors you have, but in addition, I have this info from the stupid log file: 2000-11-09T20:09:18 ERROR(200) Zope Couldn't install SiteAccess Traceback (innermost last): File /usr/lib/zope/lib/python/OFS/Application.py, line 488, in install_products (Object: ApplicationDefaultPermissions) (Info: SiteAccess) File /usr/lib/zope/lib/python/Products/SiteAccess/__init__.py, line 12, in initialize File /usr/lib/zope/lib/python/App/ProductContext.py, line 323, in registerHelp OSError: [Errno 2] No such file or directory I have no idea what's going on, and any help from you or the zope mailing list would be appreciated. Ciao! -- A child of five could understand this. fetch me a child of five. -- Groucho Marx The Doctor What: Guru to the Godshttp://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] still problems w/ SiteAccess 2.0.0b3
* The Doctor What ([EMAIL PROTECTED]) [001109 15:18]: I'm curious, you posted a message about SiteAccess. I have the same problem, with Debian (Zope 2.2.2 and I've tried SiteAccess 2.0.0b3 and b4). It producing the same errors you have, but in addition, I have this info from the stupid log file: 2000-11-09T20:09:18 ERROR(200) Zope Couldn't install SiteAccess Traceback (innermost last): File /usr/lib/zope/lib/python/OFS/Application.py, line 488, in install_products (Object: ApplicationDefaultPermissions) (Info: SiteAccess) File /usr/lib/zope/lib/python/Products/SiteAccess/__init__.py, line 12, in initialize File /usr/lib/zope/lib/python/App/ProductContext.py, line 323, in registerHelp OSError: [Errno 2] No such file or directory I have no idea what's going on, and any help from you or the zope mailing list would be appreciated. I figured it out. With a little help from my friends. This product is missing a 'help' directory. I'm not sure if this is a debian feature or not, but attached is a patch to let zope load it whether the directory exists or not. I basically wrapped a try around the part of the code that looks for the help directory and files within it. This is the file App/ProductContext.py, btw. I'll see about fixing SiteAccess (and Plugin, which has the same problem) for Debian. Ciao! -- Computers are useless. They can only give you answers. -- Pablo Picasso The Doctor What: "What, Doctor What" http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How do I logout?
* Ender ([EMAIL PROTECTED]) [001104 18:04]: I don't know if there is an elegant way to do this. if i'm the superuser i just try to find a junk method (The QuickStart Tutorial does nicely) and change the text to include the following. (if i'm another user it the same thing applies but i generally create a logout method._ What is a 'logout method._'? Is that a "DTML Method" named logout? Is the '_' a typo? You mention method above, but I'm just making sure we're talking about the same thing. :) dtml-raise Unauthorized Log Me out Scotty /dtml-raise Thanks for the help. Ciao! -- Chemist who falls in acid is absorbed in work. The Doctor What: Un-Humble http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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 Book (Error and Suggestion)
At least I think it's an error (either in my understanding or in the book). First off, I think the books great. Finally something that's trying to explain what's going on. Zope looks so cool, but it's been hard for a hardcode PHP and Perl programmer like me to get my brain around it. Anyway, my suggestion is that all the image URLs be fixed so that your book can be easily mirrored with normal web-tools. Perhaps even offer a version that's downloadable. When I went to mirror it, my mirror software choked on image urls like: http://www.zope.org/Members/michel/ZB/SimpleExamples.html/Figures/5-7.png The mirror was so I can use it at home where I don't have a reasonable net access (very flaky 56k, it hoses up frequently as it's through work). The error or problem that I have run into is that I can't get the Guest Book in chapter 5 to work. They python method listed there does not work for me. I'm using Debian Unstable (Woody) with these versions of packages: ii zope 2.2.2-3The Z Object Publishing Environment ii zope-bytecodeh 0.1.7-2Rewrite bytecode of functions to do unlikely ii zope-pythonmet 0.1.7-2Allows ZopeMethods to be written in plain Py That's bytecodehacks and pythonmethods on the bottom there. The error message is: Error Type: NameError Error Value: context I have no idea how to fix this, so I'm asking here. Ciao! -- When you say 'I wrote a program that crashed Windows', people just stare at you blankly and say 'Hey, I got those with the system, *for free*'. -- Linus Torvalds The Doctor What: Not that 'who' guy http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ 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 )