[Zope-dev] Ids starting with _

2000-07-30 Thread Chris Withers
Dieter Maurer wrote: I wonder why starting folders with _ is so bad in Zope? In the time, when everything was allowed what was not explicitely forbidden, an easy way was necessary to forbid access. Jim (and, therefore, Zope) used: anything starting with "_" is private: no DTML access,

[Zope-dev] ZPatterns: bug in DataSkins.py

2000-07-30 Thread Steve Alexander
I'm using ZPatterns 0.4.1snap1. DataSkins.py line 377 method _v_currentSheets(self,_v_dm_=_v_dm_) l.extend(list(sp._PropertySheetsFor(client))) However, the variable "client" isn't declared elsewhere. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope-dev] ZPatterns: bug in DataSkins.py

2000-07-30 Thread Steve Alexander
Steve Alexander wrote: I'm using ZPatterns 0.4.1snap1. DataSkins.py line 377 method _v_currentSheets(self,_v_dm_=_v_dm_) l.extend(list(sp._PropertySheetsFor(client))) However, the variable "client" isn't declared elsewhere. ...and when I replace it with "self", I get this error

Re: [Zope-dev] ZPatterns: bug in DataSkins.py

2000-07-30 Thread Phillip J. Eby
At 08:07 PM 7/30/00 +0100, Steve Alexander wrote: Steve Alexander wrote: I'm using ZPatterns 0.4.1snap1. DataSkins.py line 377 method _v_currentSheets(self,_v_dm_=_v_dm_) l.extend(list(sp._PropertySheetsFor(client))) However, the variable "client" isn't declared elsewhere. ..and

Re: [Zope-dev] ZPatterns: bug in DataSkins.py

2000-07-30 Thread Steve Alexander
"Phillip J. Eby" wrote: At 08:07 PM 7/30/00 +0100, Steve Alexander wrote: Steve Alexander wrote: I'm using ZPatterns 0.4.1snap1. DataSkins.py line 377 method _v_currentSheets(self,_v_dm_=_v_dm_) l.extend(list(sp._PropertySheetsFor(client))) However, the variable "client"

[Zope-dev] Membership and ZPatterns

2000-07-30 Thread Bill Anderson
OK, so I have been playing with ZPatterns quite a bit lately. And some old (current) issues with PTK comes back to mind. Among them are: o Not all portals will want a user to have a folder o username is not changeable With ZPatterns, I believe we can solve the first one. First things

[Zope-dev] ZPatterns design question

2000-07-30 Thread Steve Alexander
Let's say I have an AddressBook specialist. It stores Address records as DataSkin-derived ZClass instances (meta_type Address). The AddressBook has various methods to list the addresses, search the addresses, enter new addresses. The Address ZClass has a single propertysheet: address. When I

Re: [Zope-dev] ZPatterns design question

2000-07-30 Thread Phillip J. Eby
At 11:09 PM 7/30/00 +0100, Steve Alexander wrote: Let's say I have an AddressBook specialist. Why? :) Seriously, what is the function of "address book" in your application? Is it to find people in general? Or...? Let's say I want to combine my AddressBook with a Suppliers specialist. The

Re: [Zope] Starting Zope

2000-07-30 Thread Bill Anderson
Nitesh Dhanjani wrote: yes, but it would solve the permission problem the original poster mentioned. No, because the orignal user wanted to _start_ Zope as user zope. Unless that user has a UID/GID of 0 (is, is root by another name), the file permissions are irrelevant. Now, as to

Re: [Zope] dtml-in syntax

2000-07-30 Thread Manuel Schulte
Would this do it? : dtml-let item=0 dtml-in wherever dtml-let level="level+1" /dtml-in /dtml-let Cheers, Manuel On Sat, 29 Jul 2000, Tim Cook wrote: Kyle Burnett wrote: so i have this loop and i want to count a variable: dtml-in wherever dtml-if

RE: [Zope] Interbase DA compiled for Windows?

2000-07-30 Thread R. Herold
Sorry, connect to Interbase (kinterbasdb-0.2.1.tar.gz and InterbaseStorage098.tgz), this was meant to be kinterbasdb-0.2.1.tar.gz and _ gvibDA-0.1.tar.gz _ Thanks again, -- Ralf Herold | mailto:[EMAIL PROTECTED], PGP mailto:[EMAIL PROTECTED]

[Zope] Confusing posts (was Re: [Zope] password)

2000-07-30 Thread jan
Jonathan Desp wrote: Hi, the program zpasswd prompt. ... Filename is not option, and should be the name of the file to store the information in. ... What I should write in this source code from zpasswd ? -- What is your question, now? Generally, you should not write anything

Re: [Zope] dtml-in 'one record per page' problem

2000-07-30 Thread Dieter Maurer
Cesar A. K. Grossmann writes: I'm using a report that must return one instance by page, but it's not working very well... If the query returns more than one result, Zope presents only two pages. I'm using Zope 2.1.6 in a Linux box. What does is mean: "presents only two pages"? Probably,

Re: [Zope] What is the best method to enter more attributes about DTL Document?

2000-07-30 Thread Dieter Maurer
Marcin Kasperski writes: Short and probably obvious problem: what can I do to be asked for more properties while creating DTML Document (say I wanna be asked about description and keywords which I use in meta tags)? Maybe, customize "OFS/methodAdd.dtml" and "OFS/documentAdd.dtml". You need

Re: [Zope] Zope for secure transactions?

2000-07-30 Thread Dieter Maurer
Rajil Saraswat writes: 1. Can Zope support SSL or https? There is an extension allowing ZServer to serve HTTPS requests. Search "zope.org" for the corresponding HowTo. 2. Is there some way in Zope through which i can use secure transactions. Recently, there was a discussion in Zope's

Re: [Zope] create DTML-Source-link like on zope.org

2000-07-30 Thread Chris Withers
Deryk Barker wrote: snip how-to for view source Well I did and get a NameError looking for document_src. What object are you trying to view the source of? It's only work (and only makes sense) on things like DTML methods and DTML documents. cheers, Chris

Re: [Zope] Using Zope and Worldpilot on a large site

2000-07-30 Thread Paolo Bizzarri
Bill Anderson wrote: Paolo Bizzarri wrote: Hi Zopers, we would like to use Zope for an ISP, with more than 400.000 customers. Zope would be used with Worldpilot, in order to provide Webmail, Calendar, to do, etc. THis demonstrates a problem or two with Worldpilot. I would

[Zope] Zope 2.20 and SQLSession

2000-07-30 Thread Jorge Magalhaes
Hi Since i upgrade my zope 2.14 to 2.20 i can't access to my all DTML Method's which use the SQLSESSION session. I try view these method's with superuser permissions but a have this error message: Zope Error Zope has encountered an error while publishing

Re: [Zope] Starting Zope

2000-07-30 Thread Nitesh Dhanjani
I receive an error becouse root hasn't granted the need privileges on /Zope/var/ directory. That is what i was responding to. I am aware of the facts you mention regarding the 3 points you make below, and agree with them. nitesh. On Sun, 30 Jul 2000, Bill Anderson wrote: Nitesh

Re: [Zope] Starting Zope

2000-07-30 Thread Cary O'Brien
Cary O'Brien wrote: Well... If you are running on Linux you could simply edit the kernel code to elimitate the check on being root to bind to low ports. That's what we did. Which is an even worse idea. Why? On a sufficiently firewalled off box, where the few logins are

Re: [Zope] Zope 2.20 and SQLSession

2000-07-30 Thread Hugo Ramos
I've just sent him the RDB.py no more probs after that... :-) = Hugo Ramos - [EMAIL PROTECTED] ZopersORG - http://www.zopers.org = Do not meddle in the affairs of programmers, for they are easy to annoy, and have all the source code!!! - Original Message - From: "Jorge

Re: [Zope] create DTML-Source-link like on zope.org

2000-07-30 Thread Svante Kleist
Also, document_src() is a "Python method" function included in the "Python Method" product URL: http://www.zope.org/Members/4am/PythonMethod If you're pre-2.0 you have to install that one yourself. 2.0 contains "Python Methods", and document_src()

Re: [Zope] Starting Zope

2000-07-30 Thread Nitesh Dhanjani
Interesting argument. However, consider this: if you completely trust your 'firewalled' box, then why not run the web server as root? One response, in your case is the fact that you mention your trust on users(humans are the most easy to compromise, however that argument is a bit OT). However,

RE: [Zope] Interbase DA compiled for Windows?

2000-07-30 Thread Jeff Hoffman
On Sun, 30 Jul 2000, R. Herold wrote: Sorry, connect to Interbase (kinterbasdb-0.2.1.tar.gz and InterbaseStorage098.tgz), this was meant to be kinterbasdb-0.2.1.tar.gz and _ gvibDA-0.1.tar.gz _ Thanks again, -- Ralf Herold I understand your position, and wish we could do

Re: [Zope] Can multiple processes access a ZODB3 file?

2000-07-30 Thread Kapil Thangavelu
As Chris already stated (many times 4 effects:) ZODB is process locked. The question than becomes what kind of process interaction do you want with the zodb. most everything can be done by having hooks into zope and interacting with those hooks from your external python process. examples are a

Re: [Zope] AW: [Zope] search on www.zope.org

2000-07-30 Thread Kapil Thangavelu
I can't argue with that. i get constant key-errors... i'd really like for someone from digicool to step up and give a reason. I'm not sure if its the size of the Catalog, or the internal Splitter giving errors, or if its just related to the recent hardware problems on zope.org the saving grace

Re: [Zope] OQL for ZODB - (SQL like for objects Databases)

2000-07-30 Thread Kapil Thangavelu
Its probably possible but its probably more work than you're interested in. They speak different languages a relational system is built on relations in square/rectangular tables. an object system esp. the ZODB can store objects which can be of arbitrary nature, not to mention acquistion and

Re: [Zope] Moving site from dev to prod.

2000-07-30 Thread Kapil Thangavelu
Thats an interesting question most of the time for my work i just pack the zodb copy the fs file into a new system and it works... I wonder where you getting this request error. it could be related to internal changes in the zope machinery esp if its in an SQL method. generally most stuff in

RE: [Zope] OQL for ZODB - (SQL like for objects Databases)

2000-07-30 Thread Chris McDonough
Indeed it does. As a result, it doesn't help at all for O-R mapping. I've heard that PJE's DataSkins (part of ZPatterns) have features which make them useful for O-R mapping, though I haven't looked at them. although i haven't looked at the source. chris m's Interbase storage might be worth a

Re: [Zope] Using Zope and Worldpilot on a large site

2000-07-30 Thread Bill Anderson
Paolo Bizzarri wrote: Bill Anderson wrote: Paolo Bizzarri wrote: Hi Zopers, we would like to use Zope for an ISP, with more than 400.000 customers. Zope would be used with Worldpilot, in order to provide Webmail, Calendar, to do, etc. THis demonstrates a problem or

Re: [Zope] How to start developing in zope

2000-07-30 Thread Kapil Thangavelu
Firestar wrote: Hi, I have read through(and tried out) the tutorials and Guides at Zope.org, and now eager to port my company's website over to Zope. (The website was originally programmed in PHP) In my original design, I used OOP mainly. I defined each section(e.g. News, Events,

Re: [Zope] Starting Zope

2000-07-30 Thread Bill Anderson
(Quoting reversed for sake of continuity. On Sun, 30 Jul 2000, Cary O'Brien wrote: Cary O'Brien wrote: Well... If you are running on Linux you could simply edit the kernel code to elimitate the check on being root to bind to low ports. That's what we did.

Re: [Zope] OQL for ZODB - (SQL like for objects Databases)

2000-07-30 Thread Emmanuel DISCORS
Thanks to all, Having Class wine Drinker in relation. Drinker can drink (0-N) wines. Want to do a query like : MyListOfWine = wine where driker like 'Emmanuel' (Pseudo code) Is there a way to do that in ZODB ? E.D. == Le dim, 30 jui 2000, vous avez écrit : Its probably

[Zope] problems with the export

2000-07-30 Thread Fabio Akita
Something strange happened when I tried to export a site. I tried many times but none worked. Anyone knows what could this be? Here follows the Zope error message: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: Astral

RE: [Zope] Starting Zope

2000-07-30 Thread Chris McDonough
Not to continue offtopic for too much longer, but IMHO, the "only root can bind to ports under 1025" was, and continues to be, a terrible UNIX hack that was possibly reasonable at its time of inception, but that has since *caused* more security holes than it ever helped to prevent. The argument

RE: [Zope] password

2000-07-30 Thread Eric L. Walstad
Hi Jonathan, Try this from the console: python zpasswd.py --username="superuser" --password="TheNewPassword" "access" This is documented in the Zope installation files. Note that doing it this way, the command line will be stored in the command line buffer file on your system, which may be a

Re: [Zope] password

2000-07-30 Thread Bill Anderson
"Eric L. Walstad" wrote: Hi Jonathan, Try this from the console: python zpasswd.py --username="superuser" --password="TheNewPassword" "access" This is documented in the Zope installation files. Note that doing it this way, the command line will be stored in the command line

[Zope] Calender Tag SQL caching

2000-07-30 Thread Arjan Scherpenisse
Hi everybody, This is my first posting to this list. I have a website which will make use of a calender, with events on it stored in a MySQL database. Now, i wondered how to efficiently show this data from the database in the calender. I mean, not in a way that a sql query is made for each day

[Zope] Python/Zope API

2000-07-30 Thread Alexandre A. Rodioukov
Hello folks. I want to be able to render Zope objects from my python external method/product. Idea is to use it to render parent object. Here is code I came up so far with: def view(self, REQUEST): if self.meta_type == 'Folder': doc = self.aq_base.index_html(self,

RE: [Zope] Interbase DA compiled for Windows? gvibBase.pyd DONE

2000-07-30 Thread Brad Clements
On 30 Jul 2000, at 13:34, Jeff Hoffman wrote: this was meant to be kinterbasdb-0.2.1.tar.gz and _ gvibDA-0.1.tar.gz _ Thanks again, -- Ralf Herold I understand your position, and wish we could do something to help. However, we do not use Windows or Windows NT, internally, nor do

Re: [Zope] Calender Tag SQL caching

2000-07-30 Thread Bak @ kedai
On Mon, 31 Jul 2000, Arjan Scherpenisse wrote: Hi everybody, This is my first posting to this list. I have a website which will make use of a calender, with events on it stored in a MySQL database. Now, i wondered how to efficiently show this data from the database in the calender. I mean,

Re: [Zope] How to start developing in zope

2000-07-30 Thread Firestar
--Original Message-- From: Kapil Thangavelu [EMAIL PROTECTED] To: Firestar [EMAIL PROTECTED] Sent: July 30, 2000 3:21:54 PM GMT Subject: Re: [Zope] How to start developing in zope acquistion is an integral part of zope and is pretty powerful for simplifying design and implementation.

Re: [Zope] How to start developing in zope

2000-07-30 Thread Curtis Maloney
On Mon, 31 Jul 2000, Firestar wrote: Hi, thanks for your reply. Is acquisition similar to the concept of 'inheritance' in OOP? (or more?) I heard of this 'algebra of acquisition' written by someone...is it essential and where can i find it? TIA. In many ways, yes. Acquisition is very

[Zope] connection problem

2000-07-30 Thread vance
Hi, I'm running Zope 2.1.6 on Redhat 6.2 Intel based system. It appear to start and when I go to manage page and enter username and password I get the following error: Traceback (innermost last): File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 214, in publish_module File

Re: [Zope] connection problem

2000-07-30 Thread Curtis Maloney
On Mon, 31 Jul 2000, vance wrote: Hi, I'm running Zope 2.1.6 on Redhat 6.2 Intel based system. It appear to start and when I go to manage page and enter username and password I get the following error: Traceback (innermost last): File

[Zope] PTK question ..

2000-07-30 Thread Jean Jordaan
Hi all I'm trying to get the PTK up and running. Everything works OK, but when I try to review a pending document, this is what I get: PSTRONGResource not found/STRONG/P Sorry, the requested Zope resource does not exist.pCheck the URL and try again.p !-- Document instance at 019E8DC0 -- !--