Re: [Zope-dev] UML reverse engineering on ZClasses - I need somehelp
Hi Philipp ! Philipp Auersperg wrote: generating zclasses out of an UML model should be possible and I want to implement it, but it has to be checked if all features of ZClasses have a match in UML and vice versa. I'm not sure how PropertySheets and Views translate to UML. For example a method in UML can be generated as a DTML Method,PythonMethod,PythonScript,ZSQLMethod,PHPMethod,[otherLanguage] Method... and lots of other questions. I would be happy with a generator that supports DTML generation at first :-) this could be defined through stereotypes on the UML side, but that is still a big bunch of work. Right. Before I go into generating zclasses I want to complete and publish the reverse engineering, therefor I want to clear some questions (see my original mail). Consider me a beta tester, Regards, Maik Röder ___ 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] UML reverse engineering on ZClasses - I need somehelp
On Wed, 29 Nov 2000, Maik Röder wrote: Hi Philipp ! Philipp Auersperg wrote: snip Before I go into generating zclasses I want to complete and publish the reverse engineering, therefor I want to clear some questions (see my original mail). Consider me a beta tester, me too :-) Mit freundlichen Grüßen Joachim Schmitz AixtraWare, Ing. Büro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 ___ 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] OracleStorage, and possibly others
If you're at all interested, Kapil, it'd really be great if someone were to take over InterbaseStorage. It needs to be changed to use Bob Tierney's newer multithreaded GVInterbaseDA Python DB-API adapter (Kinterbasdb doesn't seem to get along with newer versions of Zope, and it's singlethreaded). Additionally, the pack code is broken. It would be a big win for folks who want a versioning, undoing storage backed by a relational opensource database. - Original Message - From: "Ender" [EMAIL PROTECTED] To: "Lalo Martins" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 28, 2000 9:01 PM Subject: Re: [Zope-dev] OracleStorage, and possibly others Lalo Martins wrote: Well, two betas of OracleStorage in one day, then a month and a half of silence. What's the status? What about the other Storage projects? BerkeleyStorage has been dead for an year, and I heard pretty nasty words about InterbaseStorage. What about someone who wanted to try to port OracleStorage to Postgres or some other RDBMS? Please help stamp out Data.fs! :-) []s, i've been interested in doing a postgres storage, but i haven't been able to convince myself that it would be useful in practice at all. any suggestions? Kapil ___ 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 )
Re: [Zope-dev] OracleStorage, and possibly others
Of course it would, for the same reasons as OracleStorage (eg FileStorage/Data.fs is inefficient) Actually, it's the other way around. OracleStorage is 30-to-50 times slower than FileStorage on writes. Reads are slow too but the slowness is somewhat negated by caching. ___ 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] OracleStorage, and possibly others
On Wed, Nov 29, 2000 at 07:02:50AM -0500, Chris McDonough wrote: Of course it would, for the same reasons as OracleStorage (eg FileStorage/Data.fs is inefficient) Actually, it's the other way around. OracleStorage is 30-to-50 times slower than FileStorage on writes. Reads are slow too but the slowness is somewhat negated by caching. Chris, that's only true for small databases. At about 100M of Data.fs, OracleStorage starts being faster. It depends on hardware too. We made some benchmarks on a major Brazilian portal, and well, it's currently running OracleStorage. Anyway, I said "inefficient", not "slow". []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) The biggest site for whatever-it-is-that-we-are. http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar ___ 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] RFC: Python/Zope Interfaces - More ZCatalog ;-)
Jim Fulton wrote: It is a very good thing to have the specification very near to the implementation -- as a permanent guide to the implementor. Firtunately, modern displays allow multiple side-by-side windows. ;) G400, two displays :-) It is even better, when big parts of the specification becomes part of the executable code (as is the case for Eiffel's pre- and post-conditions). :-(( I'd much prefer smaller lightweight interfaces with as little 'code' in them as possible... Or, to say it differently, it is more essential the a system's documentation describes faithfully what is rather than what should be (but is not). I disagree alot. I'd rather have clear documentation of intended behavior, rather than have the documentation change based on implementation decisions. Yeah! ZSearch (thanks Michel, I did know about it but didn't express my point very well ;-) seems like a good example of this to me. The _interface_ deosn't seem to exist, just several implementations and no actual documentation. I wonder if the implementations all have the same functionality? They would if the interface was a contract... Please note that these points were argued extensively on the Python types-sig a couple of years ago. What was the outcome? Michel wrote: However, until Catalog has a defined _interface_, I'm not even going to think about starting :-S Anyone know when that's likely to happen? A couple of years ago. (hehe - sorry, had to). Well, sorry to correct you, but there isn't an _interface_, or at least one that's published. The Z Search Interface is well defined (not well documented) ie: there isn't an interface, there's just similar (I bet they're not identical) implementations in ZSearch, Catalog, ZSQL and ZNetwork (whatever that is ;-) The 'Z Search Inteface' object is one tool in particular that uses it, perhaps you can in imply the interface from that since it is not documented. As I said earlier, I totally agree with Jim that a weak interface like this isn't a lot of use. What happens next time someone tweaks the catalog and changes the functionality? Does that mean the interface has changed? How can all the seperate implementations keep up? I actually tried to make Squishdot implement the Z Search Interface when I moved to using the catalog, but it appeared at the time that ZCatalog didn't actually work properly with Z Search anyway. All of which kindof illustrates my point :-S The main thing for me is that the implementation is documented somewhere, which it isn't. Of course, it'd be much better if it was a proper interface as is being discussed here. Mindyou, it'd also be great if python had native interface support. What does Guido think about that? 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] ZPetterns implementation qustions
At 06:19 PM 11/29/00 +1100, Itai Tavor wrote: Hi, I'm trying to figure out the right way to implement a set of classes and roles in ZPatterns. I asked some questions about this a while ago, and then went away and did some learning, but I'm stuck again and I'm afraid I need to ask more questions. I have two types of actors - Person (with properties name, phone, email, password) and Organization (with properties name, phone, fax, business_number). I also have two participants - Customer and Reseller. Each participant can be either a Person or an Organization. The participants can fill several roles, like OrderingEntities, BillableEntities, etc. Starting from the bottom, I create a Specialist for each role, each one with two virtual Racks - customerRack and ResellerRack, so I can refer to an OrderingEntity without caring if it's a Reseller or Customer. My problem is in implementing the Participant Specialists and storing Participant and Actor classes. Do I create Specialists for the Actors? It seems to me that since there is either one Person or one Organization per Customer, then the actor object should be created in the Customers Specialist. So Customers will have 3 Racks - defaultRack (using Customer object), personRack (using Person object) and organizationRack (using Organization object). Does this make sense? I think what you want is to have an Actors specialist containing a personRack and organizationRack. That is, treat "Actor" as a role relative to either Customer or Reseller. The reason I say, "I think", is because I'm really not clear on why you're doing certain things here to start with. See below. If this is a good way to do it, how do I handle creating and accessing the Person and Organization objects? Do I call personRack.newItem(newCustomerId) in the script that creates the customer? Or do I somehow do it in a SkinScript in defaultRack? And how do I get to the Person data? With an attribute provider? Or in Here's a red flag: why are you creating a person when you create a customer? If a person is something that you only make when you have a customer, then the actor-participant-transaction pattern isn't really valid, IMHO. For Actor-Participant-Transaction to make sense, you have to have Actors that exist seperate from the Participants. While it makes sense to be able to create an Actor at the same time, your model needs to also include a way to select an *existing* Actor as the Participant, otherwise you are not gaining anything from the A-P-T pattern and you might as well just have the Participant. Here's a pattern for mapping A-P-T interactions onto ZPatterns, however... If you are doing A-P-T, make sure you use a Specialist for access to the Actors. For example, in some applications Ty and I write, "acl_users" is designated as the Specialist for actors if all actors in the system have to be able to use the application. The user interface and implementation for creating and/or selecting actors to fill a participant role is placed in the actors' specialist - acl_users in our case, or perhaps a specialist called "Actors" in yours. (But I'd recommend you use a domain-specific name, if possible.) So you would not be worrying about whether to create a person or organization or what fields they need or anything else in the specialist for your "participant" objects. Indeed, you wouldn't be worrying about whether a new one was being created, or an old one selected, if you delegate that aspect of the UI to the actors' Specialist. Also, if Actors are stored in the Specialists that implement the roles they participate as, there is no place to store methods that are common to an Actor regardless of role - for example, a method that checks if a password is secure enough and called when adding a Person object. So I either duplicate these methods in every Participant Specialist, or create more Specialists - which seems like a waste either way. Again, this is solved by using a specialist for the role "Actor". Another problem is how to edit these objects - if I have a form which includes fields for a Customer properties and for the properties of the Person object linked to that Customer, can I change the Person object from the Customer SkinScript? I don't think I can do this: WHEN OBJECT CHANGED STORE name, password USING personObject.propertysheets.manage_changeProperties(name=self.name, password=self.password) Right? Because name and password are not properties on the Customer DataSkin. So I have to call person.manage_changeProperties(...) in the method that changes Customer... it seems to me that I always end up doing object connections work in methods and the SkinScript can't help with anything :( You're making this entirely too hard. The Prime Directive of ZPatterns design is, "if it looks too complicated in any one place, your design is probably wrong. If almost every individual piece looks simple, even though the whole is
[Zope-dev] Meta-data clarification and Interface interfaces
In my proposal: http://www.zope.org/Wikis/Interfaces/ExtensibleMetaData I mention interface object meta-data like pre/post conditions. This spurned a lot of interesting conversation, and I wanted to clarify some bits that I picked up from the thread. The proposal is not in any way trying to define what types of meta-data are interesting, this is, rightly, application dependent (for example, Zope would find security assertions interesting, other applications may not). The proposal is just proposing a mechanism for associating any kind of meta-data with an interface object. Dont get me wrong, the information on pre and post conditions was really interesting, especially Tim's description of Eiffel's particularly strong methedology that made me glad I don't work for the government. In the interest of clarifying what these interface objects are, I have created an Interface interface description: http://www.zope.org/Wikis/Interfaces/InterfaceInterface This describes interfaces, attributes and method objects and how they are used. I can forsee creating interface objects for these interface objects. The ones marked **Proposed** are the ones I am most interested in getting feedback on. Thanks! -Michel ___ 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] OracleStorage, and possibly others
On Wed, Nov 29, 2000 at 10:13:15AM -0500, Chris McDonough wrote: It sounds like you've done more comprehensive speed testing than we have. Can you share some numbers? Unfortunately no, I can't. We made measurements during a consulting job I did for another company, and it was made by them, not me, *plus* I wasn't smart enough to save a copy of the numbers :-/ Anyway, the biggest problem they had was stability, their ZODB grows and shrinks insickening speeds, and Data.fs would break for some reasons I don't remember anymore, and OracleFS solved that. I'll try to convince them to write a report to the list. - Original Message - From: "Lalo Martins" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 8:42 AM Subject: Re: [Zope-dev] OracleStorage, and possibly others On Wed, Nov 29, 2000 at 07:02:50AM -0500, Chris McDonough wrote: Of course it would, for the same reasons as OracleStorage (eg FileStorage/Data.fs is inefficient) Actually, it's the other way around. OracleStorage is 30-to-50 times slower than FileStorage on writes. Reads are slow too but the slowness is somewhat negated by caching. Chris, that's only true for small databases. At about 100M of Data.fs, OracleStorage starts being faster. It depends on hardware too. We made some benchmarks on a major Brazilian portal, and well, it's currently running OracleStorage. Anyway, I said "inefficient", not "slow". []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) The biggest site for whatever-it-is-that-we-are. http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar ___ 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] BerkeleyStorage (Re: [Zope-dev] OracleStorage, and possibly others)
On Wed, Nov 29, 2000 at 04:28:26PM +, Ty Sarna wrote: Lalo Martins wrote: What about the other Storage projects? BerkeleyStorage has been dead for an year. It's not dead, it's just pining for the fjords! Seriously, AFAIK it still works, and it's mainly just stalled waiting for some interest. It could stand to be updated to BerkeleyDB 3, but that was blocked on having an updated Python BerkeleyDB module for a while. Now there is an updated version, so it should be easy to update the storage. The main thing BerkeleyStorage is lacking is interest -- I don't need it currently for the purpose for which it was developed, and nobody else seems to need it much either. It looked for a while like it might get a boost from the Sessions project, but that's stalled for the moment as well. I think a BerkeleyDB3-based Storage would be a very cool option if versioning was optional instead of missing. (Then again, this is almost getting to my dreamed XDeltaStorage...) []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) The biggest site for whatever-it-is-that-we-are. http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar ___ 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] BerkeleyStorage (was: Re: OracleStorage, and possibly others)
I actually need to get a BerkeleyStorage against BSDDB3 going for a customer fairly soon. Jim has done a lot of work on it, and it's looking like I'll probably end up finishing it. Robin Dunn has a Python extension module against the bsddb3 libraries that we're using. It may actually be released as several storages (undoing and nonundoing). ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope.org done broke
Oops. Sorry for the spam. Nothing to see here folks, move along. -Michel ___ 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] BerkeleyStorage (was: Re: OracleStorage, and possibly others)
In article 01ba01c05a42$edabbb10$1f48a4d8@kurtz, Chris McDonough [EMAIL PROTECTED] wrote: I actually need to get a BerkeleyStorage against BSDDB3 going for a customer fairly soon. Jim has done a lot of work on it, and it's looking like I'll probably end up finishing it. Robin Dunn has a Python extension module Ah, cool! against the bsddb3 libraries that we're using. It may actually be released as several storages (undoing and nonundoing). Once upon a time, I had planned to do (and had some code towards): no-versions, no-undo versions, undo versions, undo only within versions with a "table" structure such that you could migrate from one to another. The last option is possibly useful for sites with objects that change a lot (so you don't want undo), but where you want to use versions for code development (which requires undo... note the lack of a "versions, no-undo" combo. That one won't work usefully, because you can trivially get stuck. You get something locked in the version, and there's no way to recover short of committing the entire version. "no-versions, undo" is possible, but doesn't seem to really buy anything) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] RFC: Python/Zope Interfaces
Ken Manheimer writes: The separation need not mean that the specification is hard to access from the implementations, either for documentation or for runtime enforcement. Good! But, objection will come later. However, it *does* run contrary to the literate programming notion of weaving together the description of software with the code. When you have multiple implementations that satisfy an interface, having a copy of the interface spec with each implementation can lead to the drift described above. If you *want* discrete interface definitions with integrity across implementations, you have to avoid this multiple, potentially conflicting copies of the specification. What I really want is that the implementation fulfills its contract! If you change the specification but do not adapt some implementations, then it is essential, that the implementation somehow tells, which specification it implements. One way to achieve this, it to have the specification integrated (with some tool to extract it easily as e.g. in Eiffel). Of cause, there are other ways to achieve this -- such as efficient linking to the specification and careful versioning of the specification documents. If you do change the implementation, then the specification can probably be changed at the same time. I should stress, that I do not necessary call for a physical copy of the specification/interface to be present in the implementation. An unambigous and correct reference, preferably interpretable by documentation generators, should do as well. I think you're asking for something internally contradictory, and not seeing that. If I do, indeed, I do not see it. Jim gave the example: If someone builds him a house, he wants a contract that lays out the obligations. The house builder should fulfill this contract. Good. When I buy a house, I expect from the vendor a description, what features the house *REALLY HAS* and not what features the vendor would like the house to have. Based on this description, I will decided whether or not I will buy. That's probably the difference between the specification (created before the implementation starts and used as a guideline for it) and the documentation (that describes the concrete instance). Ideally, both are identical. In practice, there are often discrepancies. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZPatterns: Still Properties that are objects
I use external methods to set properties that are objects for my Dataskins. I have a Customer Dataskin with a property Address. Address is another Dataskin. In my editInstance for Customer I change the properties of Address directly: dtml-call "propertysheets.basic.manage_changeProperties(REQUEST=REQUEST)" dtml-call "Address.propertysheets.basic.manage_changeProperties(REQUEST=REQUEST)" but this results into a keyError afters a couple of edits ie. it works SOMETIMES but not all the time. Roché ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] ZopeWeaver?
Hi Andy, "Andy" == Andy McKay [EMAIL PROTECTED] writes: There are now all manner of Dreamweaver extensions, both Andy I tried it briefly and found that Dreamweaver cant seem to Andy handle a file with no extension such as index_html, so gave Andy up. Yes.. it's apparently just the Windows version that has this problem it's a really wierd limitation... Yes, this works fine on the Mac. I suspect the difference is because on the Mac they are taking the http content types to figure out the content, but on Windows they are being lazy and using the file extension. Why they didn't use the same code I don't know. To make Dreamweaver on Windows happy, we name our index files "index.html" and then have a DTML method for index_html which is just dtml-var index.html. Most of our content people use Dreamweaver (on Macintosh and Windows) to edit Zope sites and are very happy with it. Simon -- - My opinions are my own, NIP's opinions are theirs -- Simon J. Coles Email: [EMAIL PROTECTED] New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 === Life is too precious to take seriously === ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help!!
Ot, I've seen this myself. Are you using IE5.5? It seems that on occasion when you have active desktop and outlook express running that win98/2K remembers the authentication details between instances of IE5.5. Realising that Outlook Express uses IE to display mail and active desktop is also based on IE then this starts to make some sense. It's only happened to me when using W2K but it definitely happened and made me doubt my sanity for a while ;) I reinstalled the machine and downgraded to IE5 to get rid of the problem. One ray of hope though is that IE5.5sp1 seems to cure the problem, at least for me. hth Phil [EMAIL PROTECTED] - Original Message - From: "Ot Ratsaphong" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 3:16 AM Subject: [Zope] Help!! Hi, I'm new to Zope and have just installed Zope on a Win98 PC. I'm trying to install squishdot and TinyTable, but Zope tells me that superuser has no permission to install the above products. I have created another user called 'admin' with Manager priviledges but I don't know how to logout of superuser and login as 'admin'. I have tried shutting down Zope and closed off internet explorer and restarting again but I still get into superuser. If I need to login as a non superuser, how do I do this? I have looked for all relevant documentation but can't find anything on this. Your help would be appreciated. TIA Ot Ratsaphong Canberra, Australia ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help!!
Hi Phil, Eric, Thanks for your responses, Chris McDonough sent me a message earlier today and told me what I had to do. My IE5.5 authentication settings were set so that it would automatically log me on to any application (ie. save my password). Because the first time I logged in was as 'superuser', it logged me in as 'superuser' everytime. Once I disabled this setting and set it to "Prompt for User name and Password", the login prompt appeared again. see: Tools-Internet Options-Security-Custom Level... Cheers, Ot Ratsaphong [EMAIL PROTECTED] - Original Message - From: "Phil Harris" [EMAIL PROTECTED] To: "Ot Ratsaphong" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 8:04 PM Subject: Re: [Zope] Help!! Ot, I've seen this myself. Are you using IE5.5? It seems that on occasion when you have active desktop and outlook express running that win98/2K remembers the authentication details between instances of IE5.5. Realising that Outlook Express uses IE to display mail and active desktop is also based on IE then this starts to make some sense. It's only happened to me when using W2K but it definitely happened and made me doubt my sanity for a while ;) I reinstalled the machine and downgraded to IE5 to get rid of the problem. One ray of hope though is that IE5.5sp1 seems to cure the problem, at least for me. hth Phil [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] Import/Export Objects
On Tue, 28 Nov 2000, Rafael Amer Ramon wrote: I have installed Zope-2.2.2 with mod_pcgi and the Apache server. mod_pcgi or mod_pcgi2? I think the latter. When I try to import some objects exported from a proviously running ZServer, I get Internal Server Error and the following message in the Apache error_log file [Tue Nov 28 19:05:26 2000] [error] PCGI Error: [503 Service Unavailable] ((116) unable to connect, fd=5) Success Does anyboby know how I can solve this problem? Misconfigured mod_pcgi2, I'm afraid. Are you sure all neccessary parameters are there, in httpd.conf? Are they correct? Point to correct socket file, e.g.? Are these files accessible from the UID httpd is running under? Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] ZTopics not working right --Error Value: Vocabulary
Hi I am trying to use ZTopics to create a visual hierarchy. I've got ZTopics installed ok but I am having problems with using them. If I create a top level ZTopic all is well and the ztopic will filter my catalog fine. However, if I try to create a hierarchy -even if only one level deep, I get the following error. Error Type: AttributeError Error Value: Vocabulary Traceback (innermost last): File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.4b1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py, line 180, in contents (Object: Traversable) File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py, line 228, in _contentsSet (Object: Traversable) File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 401, in _apply_index File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 476, in query File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 196, in getLexicon AttributeError: (see above) I haven't a clue if the problem is with ZTopics or the lexicon stuff within zope. Anyone know what's going on here? umesh ___ 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] [BUG] [Zserver] GET and HEAD give different MIME types
On Tuesday 28 November 2000, at 21 h 18, the keyboard of Martijn Pieters [EMAIL PROTECTED] wrote: Note that you don't want the DTML code to be called on a HEAD request; it may have side effects a mere tpc_abort won't roll back. I understand but this seems a deviation (I don't say a violation since the RFC says SHOULD and not MUST) from the RFC on HTTP (2616): 9.4 HEAD The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request. It is certainly a big problem for debugging or for robots which assume they can test with HEAD. ___ 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 restarting itself?
Hi listies, maybe someone of you heard of a feature that Zope can restart itself when it dies abnormally. (Linux/Unix version). I found such a service for Windows NT, but not for Linux, although I am sure that I saw it a while ago somewhere... Is this just a parameter for z2.py or is there a special program for this task? Hoping for help, Martin -- Sent through GMX FreeMail - http://www.gmx.net ___ 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] authentication
Hi Olaf, Have you read the "security" section of the "Zope Book" draft? It's linked from the front page of Zope.org. - Original Message - From: "Olaf Zanger" [EMAIL PROTECTED] To: "Zope Mailinglist" [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 1:45 AM Subject: [Zope] authentication hi everybody, i can run different versions of zope and login as superuser, setup an other user and change superuser account name and password. unfortunately i don't get authenticated when i want to login as user. means i can do no work with content at all in zope. is it normal that when i go to change the user password it shows a different amount of *s there? how does the authentication work? do any files have to be at special places for authentication? do any files need any special permission for this? my system i have it run under wwwrun:nogroup and the directory /opt/zope is root:root /opt/zope/var is wwwrun:nogroup and 755 except of files Z2.log, pcgi.soc, zProcessManager.pid that are root:root i installed zope 2.2.2, 2.2.4, compiled a 2.2.4, used an rpm, always the same problem latest i used an installation description for suse 6.4 ... -- no help did a lot as you see my system is a suse linux 7.0 with the update to kde2.0 -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Zanger Nusch Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.soli-con.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] ZTopics not working right --Error Value: Vocabulary
From what I remember, the TextIndex code wants to acquire the catalog's Vocabulary subobject. If you created your catalog without a Vocabulary (I think this is an option during the instantiation of a catalog), this can occur. This is arguably a bug. The vocabulary object should probably not be acquired. Do you think you can submit this to the "Collector" at Zope.org (http://classic.zope.org:8080/Collector)? - Original Message - From: "Umesh Soni" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 5:24 AM Subject: [Zope] ZTopics not working right --Error Value: Vocabulary Hi I am trying to use ZTopics to create a visual hierarchy. I've got ZTopics installed ok but I am having problems with using them. If I create a top level ZTopic all is well and the ztopic will filter my catalog fine. However, if I try to create a hierarchy -even if only one level deep, I get the following error. Error Type: AttributeError Error Value: Vocabulary Traceback (innermost last): File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.4b1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py, line 180, in contents (Object: Traversable) File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py, line 228, in _contentsSet (Object: Traversable) File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 401, in _apply_index File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 476, in query File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 196, in getLexicon AttributeError: (see above) I haven't a clue if the problem is with ZTopics or the lexicon stuff within zope. Anyone know what's going on here? umesh ___ 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] ZopeWeaver?
On Wed, 29 Nov 2000, Simon Coles wrote: Yes, this works fine on the Mac. I suspect the difference is because on the Mac they are taking the http content types to figure out the content, but on Windows they are being lazy and using the file extension. Why they didn't use the same code I don't know. Thats just the way Windows works. Somehow M$ chose to determine the filetype by the file extension, and the file extension only (and then they chose to _hide_ the extension by default... ;). A somehow related issue is that IE seems to prefer file extensions over any HTTP headers, MIME types and such. Mac has a forked filesystem keeping type information separately. Thus no problem with names. Cheers, Stefan ___ 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] (no subject)
Hi, I have developed a product in windows 95/98. Is it possible to port that product to NT Machine. If so please tell me how?. Thanks, jacintha ___ 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 restarting itself?
Have a look at: http://www.lightwerk.com//zope/monitoring Hi listies, maybe someone of you heard of a feature that Zope can restart itself when it dies abnormally. (Linux/Unix version). I found such a service for Windows NT, but not for Linux, although I am sure that I saw it a while ago somewhere... Is this just a parameter for z2.py or is there a special program for this task?
Re: [Zope] Zope restarting itself?
On Wed, 29 Nov 2000, Martin Winkler wrote: maybe someone of you heard of a feature that Zope can restart itself when it dies abnormally. (Linux/Unix version). I found such a service for Windows NT, but not for Linux, although I am sure that I saw it a while ago somewhere... Is this just a parameter for z2.py or is there a special program for this task? z2.py -Z ... Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] authentication
I'd be willing to bet that you're not properly giving the "Manager" role to the content management user you create. You need to select "Manager" from the list of roles shown on the user creation form when you create the user. - Original Message - From: "Olaf Zanger" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 7:04 AM Subject: Re: [Zope] authentication hi chris, Have you read the "security" section of the "Zope Book" draft? It's linked from the front page of Zope.org. absolutley i did, i read every docu i could get hands on, plus i searched google ... doesn't help do you have any answers to my questions ? would be of great help i can run different versions of zope and login as superuser, setup an other user and change superuser account name and password. unfortunately i don't get authenticated when i want to login as user. means i can do no work with content at all in zope. is it normal that when i go to change the user password it shows a different amount of *s there? how does the authentication work? do any files have to be at special places for authentication? do any files need any special permission for this? my system i have it run under wwwrun:nogroup and the directory /opt/zope is root:root /opt/zope/var is wwwrun:nogroup and 755 except of files Z2.log, pcgi.soc, zProcessManager.pid that are root:root i installed zope 2.2.2, 2.2.4, compiled a 2.2.4, used an rpm, always the same problem latest i used an installation description for suse 6.4 ... -- no help did a lot as you see my system is a suse linux 7.0 with the update to kde2.0 -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Zanger Nusch Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.soli-con.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] ZTopics not working right --Error Value: Vocabulary
From what I remember, the TextIndex code wants to acquire the catalog's Vocabulary subobject. If you created your catalog without a Vocabulary (I think this is an option during the instantiation of a catalog), this can occur. This is arguably a bug. The vocabulary object should probably not be acquired. Do you think you can submit this to the "Collector" at Zope.org (http://classic.zope.org:8080/Collector)? --snip The catalog in question is the portal_catalog from the PTK which has an accompaning Vocabulary object. I will do as you requested and submit this to the Collector. umesh btw. I had to apply the following patch to ZTopic to rectify a mis-behaving user interface. --- topicEdit.dtml.old Wed Nov 29 10:49:53 2000 +++ topicEdit.dtml Wed Nov 29 09:16:02 2000 @@ -35,8 +35,8 @@ TR TD align="left" COLSPAN="2" - input type="submit" name="../editSearchForm:method" value="Edit" - input type="submit" name="../deleteSearch:method" value="Delete" + input type="submit" name="editSearchForm:method" value="Edit" + input type="submit" name="deleteSearch:method" value="Delete" /TD /TR /table ___ 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] ZPygreSQL
Hi, does anybody know where to download ZPygreSQL? The Server www.zope.org seems to be down since hours... Need it urgent! Thanks! -- Dipl.-Phys. Robert Senger Fachgebiet Raumfahrttechnik Technische Universität München Boltzmannstr. 15, D-85747 Garching Tel:++49 / (0)89 / 289-15997 Fax:++49 / (0)89 / 289-16004 email: [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Editing SQL methods from Emacs (+ FTP server)?
All the texts explaining the wonders of Zope tell that you can edit your DTML files from (X)Emacs, and not from the lame editor you get from your browser with the default HTML form. It works great for DTML but ange-ftp (GNU emacs 20.7) refuses to open the SQL methods ("File exists but cannot be read"). Is there a solution, besides writing it offline and uploading it into Zope? ___ 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] Editing SQL methods from Emacs (+ FTP server)?
I added a patch for ftp-enabling SQL Methods to either the collector or the zopeshell patch manager on sourceforge (I forget which right now, and it's late and I'm going to bed right now...) If you can't find it, email me and I'll dig it up. Stephane Bortzmeyer wrote All the texts explaining the wonders of Zope tell that you can edit your DTML files from (X)Emacs, and not from the lame editor you get from your browser with the default HTML form. It works great for DTML but ange-ftp (GNU emacs 20.7) refuses to open the SQL methods ("File exists but cannot be read"). Is there a solution, besides writing it offline and uploading it into Zope? ___ 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 ) -- Anthony Baxter [EMAIL PROTECTED] It's never too late to have a happy childhood. ___ 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] security
* Dieter Maurer [EMAIL PROTECTED] [001128 00:12]: Bowyer, Alex writes: Can some one explain how the Define Permissions screen works. I really don't understand the concept behind it, what does it mean for a permission setting to own a permission? All I need to do is to make certain ZClass methods have a certain level of security and the other methods of the class have no security. It is quite good explain in the upcoming Zope book. In fact, I think Alex was referring to ZClass security, which isn't covered in the book, and is something I've never go to the bottom of either. on the 'define permissions' tab, it says: The table below has two columns. The first column lists the permissions for this object. The second column specifies the permissions that should have this permission in this product or ZClass. I'm probably being intellectually lazy or something, but that doesn't make any sense to me at all. seb. ___ 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] PIL and Zope Poll Again !
Sorry for the question, but i am getting crazy trying to get the Zope Poll Product working !! Have anybody installed this on a Debian machine? I am missing something? I installed the python-imaging* from 2.2 and it doesn't work, so i switch to python-imagin from Woody and it doesn't work to. I replace the /usr/lib/python1.5/site-packages/PIL/__init__.py with the one comming in the Poll product and neither !!! Can you help me with that? Have anybody made a Poll Debian package, it is a escential part in every website :) Thank for your work, -- Nestor A. Diaz Ingeniero de Desarrollo Engendro.com - Comercio Electronico sobre Linux Email: [EMAIL PROTECTED] - WWW: http://www.engendro.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] strange behaviour of ZSQL methods
Hi listies, something strange is happening with my ZSQL methods. I have a huge query that works great when testing it in the management-interface - it returns about 10 records or so. but when I implement it into a dtml-method getting the parameters via X-Y-GMX: $flush REQUEST as usual, I am getting the whole database in return. I'm quite sure that it's my own fault, so I'd like to see the translated SQL-query in the dtml-method to check for the wrong fields. Is there a tag for it like: dtml-var MyZSQLQuery showRenderedSQLsource ? This problem drives me nuts since already two days :-(( Martin ___ 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] . in python names
Dieter Maurer wrote: But: Try to define a method(!) "index.html" in a class. I know, it is possible. But it is not natural. fair point :-) Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZCatalog: Query Syntax
Andy McKay wrote: I am curious: Do others think this feature might be worth adding to the ZCatalog? If so, perhaps it should work its way into a proper feature request... Yes definitely. Well, where is the query syntax for ZCatalog actually documented? It'd be great if it was more flexible, applied to indexes other than TextIndexes and was actually documented... Any ideas? Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] strange behaviour of ZSQL methods
Hi listies, something strange is happening with my ZSQL methods. I have a huge query that works great when testing it in the management-interface - it returns about 10 records or so. but when I implement it into a dtml-method getting the parameters via X-Y-GMX: $flush REQUEST as usual, I am getting the whole database in return. I'm quite sure that it's my own fault, so I'd like to see the translated SQL-query in the dtml-method to check for the wrong fields. Is there a tag for it like: dtml-var MyZSQLQuery showRenderedSQLsource ? You didn't tell what SQL-Database you use, but Postgres and Mysql allow logging/monitoring of the queries they get. So you are able to get the information straight before/while it hits the backend. cheers, oliver ___ 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] ZopeWeaver?
One trick I use on my NT box is to use Dreamwaver for all the major html content which end in a .html extension and htmlkit for the index_html and like files. FYI, Albert Boulanger [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Rookie Question - Syntax
Hi folks! I am a Zope/Python-Rookie and Ihave a probably quite simple problem: I must check if some must-fields from a form were filled out by a user. Checking data from a single field is no problem, but what's the correct syntax for checking more than one field (e.g. "name", "address", "email") ? Thanx Walter ___ 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] security
In article [EMAIL PROTECTED], seb bacon [EMAIL PROTECTED] writes * Dieter Maurer [EMAIL PROTECTED] [001128 00:12]: Bowyer, Alex writes: Can some one explain how the Define Permissions screen works. I really don't understand the concept behind it, what does it mean for a permission setting to own a permission? All I need to do is to make certain ZClass methods have a certain level of security and the other methods of the class have no security. It is quite good explain in the upcoming Zope book. In fact, I think Alex was referring to ZClass security, which isn't covered in the book, and is something I've never go to the bottom of either. on the 'define permissions' tab, it says: The table below has two columns. The first column lists the permissions for this object. The second column specifies the permissions that should have this permission in this product or ZClass. I'm probably being intellectually lazy or something, but that doesn't make any sense to me at all. ... I also find this a bit unobvious. I guess it must be a mapping from permissions -- permissions, but I can't see what it's supposed to mean or accomplish. Proxies I can almost cope with, ie this is a trusted method make it behave as though it were ZopeGod I can understand. -- Robin Becker ___ 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] ZopeWeaver?
Hello Thanks for all the comments so far on this topic. Hope to hear more. I have been looking this morning gain at the Extending Dreamweaver docs. [on Win32 its typically at C:\Program Files\Macromedia\Dreamweaver 3\Extending\ExtendingHelp.htm ] It seems to me that by using the XML-based TAGSPEC, and then the Dreamweaver Javascript DOM, it should be possible to open index_html or anything.dtml in a fully controlled manner. It looks like this can avoid any dependancy on Win32. SOME EXAMPLES: DWfile.read() The following code reads the file mydata.txt and, if successful, displays an alert box with the contents of the file. var fileURL = "file:///c|/temp/mydata.txt"; var str = DWfile.read( fileURL); if (str){ alert( fileURL + " contains: " + str); } .. In Dreamweaver 3, extensions are no longer limited to working within the local file system. Dreamweaver now provides a mechansim for getting information from and sending information to a web server via hypertext transfer protocol (HTTP). This chapter describes the HTTP API and how to use it. MMHttp.getFile() The following code gets an HTML file, saves all the files in the Configuration/Temp folder, and then opens the local copy of the HTML file in a browser: var httpReply = MMHttp.getFile("http://www.dreamcentral.com/people/profiles/scott.html", false); if (httpReply.statusCode == 200){ var saveLoc = httpReply.data; dw.browseDocument(saveLoc); There's lots more, but these seem like the 2 essential ones [+ their .write() counterparts] The potential advantages I see for Zope are: - PROFILE [improving Zope's general visibility and acceptance for new projects] Having a set of Zope Dreamweaver Extensions in itself would help promote it. - WORKFLOW [making Zopesite development with Dreaweaver much friendlier for designers/programmers etc.] - DESIGN [ better integration with Macromedia's graphic toolset will make it easier to for professional designers to develop more professional looing ZopeSites] - FEATURES [There are many features available now in Dreamweaver3+ which can be leveraged to prototype and build higher level Zope templates design and interface] So my questions are what Javascript 'ZopeWeaver' extensions would you really like to see? - Jason ___ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] ___ 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] strange behaviour of ZSQL methods
How about: dtml-var "theQuery(REQUEST=REQUEST, src__=1)" -steve "Oliver" == Oliver Bleutgen [EMAIL PROTECTED] writes: Hi listies, something strange is happening with my ZSQL methods. I have a huge query that works great when testing it in the management-interface - it returns about 10 records or so. but when I implement it into a dtml-method getting the parameters via X-Y-GMX: $flush REQUEST as usual, I am getting the whole database in return. I'm quite sure that it's my own fault, so I'd like to see the translated SQL-query in the dtml-method to check for the wrong fields. Is there a tag for it like: dtml-var MyZSQLQuery showRenderedSQLsource ? Oliver You didn't tell what SQL-Database you use, but Postgres Oliver and Mysql allow logging/monitoring of the queries they Oliver get. So you are able to get the information straight Oliver before/while it hits the backend. Oliver cheers, oliver Oliver ___ Zope Oliver maillist - [EMAIL PROTECTED] Oliver http://lists.zope.org/mailman/listinfo/zope ** No cross Oliver posts or HTML encoding! ** (Related lists - Oliver http://lists.zope.org/mailman/listinfo/zope-announce Oliver 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] [BUG] [Zserver] GET and HEAD give different MIME types
On Wed, Nov 29, 2000 at 12:06:23PM +0100, Stephane Bortzmeyer wrote: On Tuesday 28 November 2000, at 21 h 18, the keyboard of Martijn Pieters [EMAIL PROTECTED] wrote: Note that you don't want the DTML code to be called on a HEAD request; it may have side effects a mere tpc_abort won't roll back. I understand but this seems a deviation (I don't say a violation since the RFC says SHOULD and not MUST) from the RFC on HTTP (2616): 9.4 HEAD The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response. The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request. It is certainly a big problem for debugging or for robots which assume they can test with HEAD. The SHOULD in that text is there _because_ not all web environments can reliably generate a HEAD response without invoking undesired side-effects. It is easy with a static website, where there won't be any side effects to only sending the headers going with a URL, but with a dynamic web server this is quite different. If this is really a big problem for you I suggest you upgrade to Zope 2.2.0 or higher. Quite some trouble is taken to ensure that a more meaningful content-type is returned: - If the published object has a 'content_type' attribute, it's value will be used first. - If absent, the ID of the object will be used to guess it's content type. Only object names which use extensions benefit (for example: logo.gif is probably 'image/gif'). - If no guess could be made, the property 'default_content_type' is used. DTML Documents and Methods define this as 'text/html'. - Only when all three steps above fail will the content type 'application/octet-stream' be used. I believe that only the 3rd step was added in 2.2.0b1, so you could try and add a 'content_type' property to DTML objects that *must* return a correct content-type. -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.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] Editing SQL methods from Emacs (+ FTP server)?
On Thursday 30 November 2000, at 0 h 19, the keyboard of Anthony Baxter [EMAIL PROTECTED] wrote: I added a patch for ftp-enabling SQL Methods to either the collector or the zopeshell patch manager on sourceforge (I forget which right now, and it's late and I'm going to bed right now...) If you can't find it, email me and I'll dig it up. No change in zopeshell for three months and I cannot find the collector on SourceForge? ___ 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] [BUG] [Zserver] GET and HEAD give different MIME types
Martijn Pieters wrote: Note that you don't want the DTML code to be called on a HEAD request; it may have side effects a mere tpc_abort won't roll back. If the implication here is that the corresponding GET request could have meaningful side effects (i.e. not just changes to caches, logs or hit counters), then strictly it would be breaking the semantics of GET, which is meant to be idempotent - capable of being called multiple times without meaningfully changing the state of the server-side system or application. Requests that can change the state are supposed to use POST. Hamish Lawson ___ 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] Rookie Question - Syntax
Hi Walter, There's a good tutorial on how to design forms at: http://www.zope.org/Members/jules/smarterforms_html I like to let javascript handle the validation, it lightens the load a little on the server. I use Regular Expressions to check the validity of each field. There's a tutorial at: http://www.netpedia.com/features/javascript/objects2/ There was also a recent flurry of postings on this subject. You can search for them at: http://zope.nipltd.com/public/lists/zope-archive.nsf/$$Search?OpenForm Hope that helps, Eric. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Walter Pleyer Sent: Wednesday, November 29, 2000 6:45 AM To: [EMAIL PROTECTED] Subject: [Zope] Rookie Question - Syntax Hi folks! I am a Zope/Python-Rookie and Ihave a probably quite simple problem: I must check if some must-fields from a form were filled out by a user. Checking data from a single field is no problem, but what's the correct syntax for checking more than one field (e.g. "name", "address", "email") ? Thanx Walter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help!!
hi, Create a user in acl_users, then use that person to manage the site. j. .. . Jason C. Leach ... University College of the Cariboo. .. On Wed, 29 Nov 2000, Ot Ratsaphong wrote: Hi, I'm new to Zope and have just installed Zope on a Win98 PC. I'm trying to install squishdot and TinyTable, but Zope tells me that superuser has no permission to install the above products. I have created another user called 'admin' with Manager priviledges but I don't know how to logout of superuser and login as 'admin'. I have tried shutting down Zope and closed off internet explorer and restarting again but I still get into superuser. If I need to login as a non superuser, how do I do this? I have looked for all relevant documentation but can't find anything on this. Your help would be appreciated. TIA Ot Ratsaphong Canberra, Australia ___ 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 restarting itself?
hi, In linux I would just whip up a cron job, or script to keep an eye on it. In Linux (Unix) in's much easier to do your own restart method that it is with any of the windows so ... j. .. . Jason C. Leach ... University College of the Cariboo. .. On Wed, 29 Nov 2000, Martin Winkler wrote: Hi listies, maybe someone of you heard of a feature that Zope can restart itself when it dies abnormally. (Linux/Unix version). I found such a service for Windows NT, but not for Linux, although I am sure that I saw it a while ago somewhere... Is this just a parameter for z2.py or is there a special program for this task? Hoping for help, Martin -- Sent through GMX FreeMail - http://www.gmx.net ___ 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] VHost logs.
hi, Has anyone implemented there own logging for Virtual Sites? I was thinking in the site rules an External Method could be called, passed the Request obj, and from that generate logs for virtual sites. If anyone has done that, or knows of a better way I'd be interested in hearing it. j. .. . Jason C. Leach ... University College of the Cariboo. .. ___ 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] exchange parameters between DTML Documents
On Wed, 29 Nov 2000, Andrei Belitski wrote: In dependance of a link I would like to pass some document name as parameter to another DTML Document which displays for example the properties of the parameter document. How can I do it? I would appreciate any hints, thank you in advance The mechanism is called "session". Learn how setup and to use some session products. There are few session products for Zope - search zope.org. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] Editing SQL methods from Emacs (+ FTP server)?
I'm trying to get a list of lists using ZSQL Methods... I have two related tables, hounds and items. I want to get the hound_id in items like this but can't work out how to pass the hound_id variable... dtml-in get_hounds bdtml-var name dtml-var id/b dtml-in "get_items(hound_id='id')" dtml-var titlebr /dtml-in /dtml-in ___ 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] Factoids for supporting zope
A clarification here. It refers to Digital Creations being a long term viable business entity. When we made "The Zope Decision", one of the attractions of the Zope/DC relationship is that whilst it is obviously very nice for everyone if DC continues to exist, and continues with their current strategy, we aren't held hostage to their fortune. Consider a possible experience with a proprietary vendor. At the moment you have an excellent relationship with them, the product is good, and their future plans are encouraging. Then they change strategy, or get bought out - not an unlikely outcome in new markets where things are still playing out. Then all of a sudden you find: - the pricing has changed dramatically - the product has moved - the vendor no longer cares about you Ouch. Have you ever had a vendor "end of life" a product on you? With Zope, that's not going to happen. If DC change their strategy dramatically then: - if there's the demand, someone else will step into their shoes (like maintaining the ages old version of Zope that DC not longer support) - if you want to, you can do it yourselves (or pay someone else) For my money, going with a proprietary vendor is even more risky than going with an Open Source product. The proprietary lock in means the vendor holds all the cards, and you hold none. The cool thing about DC/Zope is you get the best of the Open Source and commercial worlds - its Open Source when you need it, but there's a nice cuddley vendor to buy support and consulting from (as well as a load of independent organisations :-) Zope gives you more choices, and total control over your future. Proprietary, closed source solutions are just lulling you into a false sense of security - until its no longer in the vendor's interest to deal with you. Simon -- - My opinions are my own, NIP's opinions are theirs -- Simon J. Coles Email: [EMAIL PROTECTED] New Information Paradigms Work Phone: +44 1344 753703 http://www.nipltd.com/ Work Fax: +44 1344 753742 === Life is too precious to take seriously === ___ 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] VHost logs.
Jason C. Leach wrote: hi, Has anyone implemented there own logging for Virtual Sites? I was thinking in the site rules an External Method could be called, passed the Request obj, and from that generate logs for virtual sites. If anyone has done that, or knows of a better way I'd be interested in hearing it. I'm not exactly sure what your goal is... but if you're just trying to generate separate log files for each of your virtual sites, I'm accomplishing that by having my virtual sites proxied behind Apache (using SiteAccess and the ProxyPass directive) and specifying the log files for each VirtualHost in my httpd.conf file. You can control the contents of the logs using the LogFormat directive; I use the same format for all of my virtual hosts, but I think you can specify a different log format for each host if you desire. If you're trying to accomplish something else which requires you to handle the logging on the Zope side of things, then it seems to me that your idea would work, although I'd want to find out how my server performance would be affected... Hope this is useful for you, rob ___ 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] Ah, I found it -- Estimate of community size
This was the item is was looking for on how big the Members folders was, FYI. From: http://www.zope.org/Documentation/ZWN/ZWN-2000-09-26/index_html?pp=1 Zope Web by Ethan Fremen Exorcising Zope.org The extremely large Members folder (11139 of you!) and acl_users folder was causing Zope.org to load nearly 50 MB of "Ghosts" - stateless objects - into memory. The ever resourceful Shane Hathaway jumped in with his BTreeFolders for both the acl_users folder and the Members folder. Now, instead of 26,000 objects loaded at once, only about 1,000 or so get loaded. ___ 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] VHost logs.
Jason C. Leach wrote: hi, Has anyone implemented there own logging for Virtual Sites? I was thinking in the site rules an External Method could be called, passed the Request obj, and from that generate logs for virtual sites. If anyone has done that, or knows of a better way I'd be interested in hearing it. I'm not exactly sure what your goal is... but if you're just trying to generate separate log files for each of your virtual sites, I'm accomplishing that by having my virtual sites proxied behind Apache (using SiteAccess and the ProxyPass directive) and specifying the log files for each VirtualHost in my httpd.conf file. You can control the contents of the logs using the LogFormat directive; I use the same format for all of my virtual hosts, but I think you can specify a different log format for each host if you desire. If you're trying to accomplish something else which requires you to handle the logging on the Zope side of things, then it seems to me that your idea would work, although I'd want to find out how my server performance would be affected... I also would prefer to split the log via regexp-filters just before doing statistics or rotating (ie. not in zope). A pure logfile doesn't reveal useful informations anyway without some processing. Related question: Is there away to stop zope's logging, as apache as proxy logs fine for me? cheers, oliver ___ 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] Ah, I found it -- Estimate of community size
I would also think that the size has grown in the last two months. Cheers, J At 12:47 PM -0500 11/29/2000, Albert Boulanger wrote: This was the item is was looking for on how big the Members folders was, FYI. From: http://www.zope.org/Documentation/ZWN/ZWN-2000-09-26/index_html?pp=1 Zope Web by Ethan Fremen Exorcising Zope.org The extremely large Members folder (11139 of you!) and acl_users folder was causing Zope.org to load nearly 50 MB of "Ghosts" - stateless objects - into memory. The ever resourceful Shane Hathaway jumped in with his BTreeFolders for both the acl_users folder and the Members folder. Now, instead of 26,000 objects loaded at once, only about 1,000 or so get loaded. ___ 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] ZopeFind expression
I fear this is anywhere in some howtos, but I couldn't find it. How can I get properties of a DTML-Documents parentfolder as expression in ZopeFind? At least I couldn't get the "Find" in Zope's webinterface to show all DTML-Documents whose parent-folder has a certain property. I guess I'm missing a method which gives me the Parent-object without the REQUEST object. cheers, Oliver ___ 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] Editing SQL methods from Emacs (+ FTP server)?
I'm trying to get a list of lists using ZSQL Methods... I have two related tables, hounds and items. I want to get the hound_id in items like this but can't work out how to pass the hound_id variable... dtml-in get_hounds bdtml-var name dtml-var id/b dtml-in "get_items(hound_id='id')" dtml-in "get_items(hound_id = id)" should work. Be careful... id is an unfortunate field name for your database.. there may be a namespace collision with the Zope notion of id. If this turns out to be a problem, post again and we can suggest some work-arounds -steve dtml-var titlebr /dtml-in /dtml-in ___ 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] Ah, I found it -- Estimate of community size
Now, I wonder wich statement is more accurate: http://www.zope.org/Documentation/ZWN/ZWN-2000-09-26/index_html?pp=1 Zope Web by Ethan Fremen Exorcising Zope.org The extremely large Members folder (11139 of you!) and acl_users folder was causing Zope.org to load nearly 50 MB of "Ghosts" - stateless objects - into memory. or From: http://www.zope.org/Documentation/ZWN/ZWN-2000-11-08 "Zope Web by Ethan Fremen How Many Zopatistas? [] There are 1617 members of [EMAIL PROTECTED] and 409 members of zope-dev. There are 200,000 unique visits to zope.org every month (ok, that's a record :). ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Help with Nested ZSQL methods
I thought I saw this answer to this one time on http://www.zope.org once, but for the life of me I cannot seem to find it. I have two ZSQL methods, both tested and work. ZSQL method 1 === method id= sql_get_schedules SELECT * FROM Schedules WHERE JobID = dtml-var JobID ORDER BY SchedSeq ZSQL method 2 === method id= sql_get_items SELECT * FROM Items WHERE SchedID = dtml-var SchedID ORDER BY ItemNo These two tables are linked by the common field "SchedID" Here's the operative part of the dtml method that calls these methods: == dtml-in sql_get_schedules TABLE BORDER="3" TRTHItem No./THTHDescription/THTHMn/DOT No./THTHUnits/TH/TR dtml-in sql_get_items TR TDdtml-var ItemNo/TD TDdtml-var Description/TD TDdtml-var MnDOTNo/TD TDdtml-var UnitDescription/TD /TR dtml-in TABLE /dtml-in == I get the error: Error Type: Bad Request Error Value: ['SchedID'] I suspect there is some type of namespace-related problem going on here where the var SchedID is not getting passed to the internal ZSQL method. P. Johnson P.S.: I must Lotus Notes ( http://www.iarchitect.com/lotus1.htm ) at my place of employment. Any errantly inserted HTML or other weird garbage not intentional. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help with Nested ZSQL methods
try calling like this : dtml-in "sql_get_items(_.None,_)" also you might what to use dmt-sql var instead of dtml-var inside ZAQL Methods. regards -- pashah Here's the operative part of the dtml method that calls these methods: == dtml-in sql_get_schedules TABLE BORDER="3" TRTHItem No./THTHDescription/THTHMn/DOT No./THTHUnits/TH/TR dtml-in sql_get_items TR TDdtml-var ItemNo/TD TDdtml-var Description/TD TDdtml-var MnDOTNo/TD TDdtml-var UnitDescription/TD /TR dtml-in TABLE /dtml-in == I get the error: Error Type: Bad Request Error Value: ['SchedID'] I suspect there is some type of namespace-related problem going on here where the var SchedID is not getting passed to the internal ZSQL method. P. Johnson ___ 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] Ah, I found it -- Estimate of community size
I would have to say that both are accurate at the time they were given. However, neither will be a truly accurate measurement of the users of Zope and the Zope community. They each measure different things. One measures the people who have "joined" Zope.org. """The extremely large Members folder (11139 of you!)""" The other measures subscribers to the mailing list. """There are 1617 members of [EMAIL PROTECTED]""" There are a few people who have different identities on the Zope memberships. There will also be possible duplication on the mailing list due to different email addresses. There are also people who neither join Zope.org nor subscribe to the mailing list, but who have nevertheless downloaded and use Zope. There also are people who have been on the mailing lists, learned and then subsequently left the lists, but still use Zope. There are also those who no longer do. So, who knows what an accurate figure would be? And I can't tell you if there are any dimpled chads. :) But as you can see there are many more unique visitors than either of the numbers. Also, keep in mind that the Zope community on [EMAIL PROTECTED] is an active and vibrant community. As Zope matures, grows into it's own and the documentation catches up, it will get even better. The future is bright. :) Jimmie Houchin albert boulanger wrote: Now, I wonder wich statement is more accurate: http://www.zope.org/Documentation/ZWN/ZWN-2000-09-26/index_html?pp=1 Zope Web by Ethan Fremen Exorcising Zope.org The extremely large Members folder (11139 of you!) and acl_users folder was causing Zope.org to load nearly 50 MB of "Ghosts" - stateless objects - into memory. or From: http://www.zope.org/Documentation/ZWN/ZWN-2000-11-08 "Zope Web by Ethan Fremen How Many Zopatistas? [] There are 1617 members of [EMAIL PROTECTED] and 409 members of zope-dev. There are 200,000 unique visits to zope.org every month (ok, that's a record :). ___ 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] Does 2.2.4 solve Proxy+ZCatalog bugs?
Marcin Kasperski wrote: The question as in the title. In changes for 2.2.3 I found: - Resolved known condition in the Catalog where objects are not guaranteed to be unindexed before indexing happens again. Now objects are guaranteed to be unindexed correctly first. This should resolve all outstanding KeyErrors with Catalog, although currently broken Catalogs will require a reindex to resolve them. Has anyone verified whether this in fact corrects the infamous ZCatalog key errors when one tried to reindex site proxied with Apache? Regards Zope.org has been updated to 2.2.4 and we're still getting key errors. However, the current suspicion is that one of our products isn't playing nice with the catalog. More information when we get it. Thanks, ethan mindlace fremen Zopatista Community Liason. ___ 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] DC and the PTK?
Dennis Nichols wrote: At 11/28/00 11:34 AM, albert boulanger wrote: Whether to go with portal products from Plumtree or iPlanet. If this implies that you are considering using Zope's PTK, then you should be aware of this: You can *not* get commercial support from Digital Creations for PTK because PTK is not a released product. If you think you may need such support before PTK gets to 1.0, then you had best not use the PTK. But that's no reason to not use the rest of Zope. This needs to be clarified. We actively do consulting with the PTK. If you want to enter into a consulting contract with Digital Creations that involves the PTK, that's not a problem. If you decide you want to use the PTK yourself, there exists a mailing list and a product tracker. (see http://www.zope.org/Products/PTK ) The PTK is under heavy development and is not a full release yet, so that does need to be taken into account if you wish to use it yourself. ethan mindlace fremen Zopatista Community Liason ___ 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] (no subject)
Zopers, Anybody knows how can I change the value of a property of an object which has a dynamic (string variable) name ? thanks, Anderson ___ 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] distributing products
jacintha menezes wrote: Hi, I have developed a product in windows 95/98. Is it possible to port that product to NT Machine. If so please tell me how?. Thanks, jacintha Products have a "distribution" tab that creates a distribution of your product. Alternatively, you can select the product in the management interface and choose "export" and then reimport it in your NT Zope, though you need to make sure you are in the Product folder. Hope that helps, ethan mindlace fremen Zopatista Community Liason ___ 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] Editing SQL methods from Emacs (+ FTP server)?
Stephane Bortzmeyer wrote: On Thursday 30 November 2000, at 0 h 19, the keyboard of Anthony Baxter [EMAIL PROTECTED] wrote: I added a patch for ftp-enabling SQL Methods to either the collector or the zopeshell patch manager on sourceforge (I forget which right now, and it's late and I'm going to bed right now...) If you can't find it, email me and I'll dig it up. No change in zopeshell for three months and I cannot find the collector on SourceForge? The collector is here: http://classic.zope.org:8080/Collector Hope that helps, ethan mindlace fremen Zopatista Community Liason ___ 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] Rookie Question - Syntax
Walter Pleyer wrote: I must check if some must-fields from a form were filled out by a user. Checking data from a single field is no problem, but what's the correct syntax for checking more than one field (e.g. "name", "address", "email") ? I probably could answer your question as stated, but I'm too lazy. Instead, I will say that you should do such a thing from JavaScript instead. This is a discussion for elsewhere, and I'd be happy to take the discussion off-line... -- "Where is the fancy bread, in the heart or in the head?" Daryl Stultz - python, blender, robots, really bad harmonica playing... [EMAIL PROTECTED] RedHat Linux 6.1 - Dual Pentium Pro ___ 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] SQL and dtml-tree
I'm attempting to create a tree structure using dtml-tree from SQL results but I'm finding the documentation exceedingly cryptic. What I want to do is create the following structure: Client1 (tree Branch) Project1 Edit | Delete Project2 Edit | Delete Client2 Project1 Edit | Delete Client3 Client4 out of a database contaning the above information (ie client names, project names, and unique identifiers for each). I have the SQL queries that will give me the appropriate information I just need how to make the dtml-tree tag work with this. Any help whatsoever would be useful, thanks! Mike [EMAIL PROTECTED]
Re: [Zope] Zope restarting itself?
Martin Winkler writes: maybe someone of you heard of a feature that Zope can restart itself when it dies abnormally. (Linux/Unix version). I found such a service for Windows NT, but not for Linux, although I am sure that I saw it a while ago somewhere... Is this just a parameter for z2.py or is there a special program for this task? Hoping for help, For me, Zope automatically restarts under Linux and Solaris without that I had anything special to do. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help with Nested ZSQL methods
[EMAIL PROTECTED] writes: ... passing parameters to Z SQL methods ... This is an FAQ. You already know the searchable list archive at NIP? Z SQL methods do *NOT* take parameters from the DTML namespace. They only look at "REQUEST". You have two options: 1. put your parameters into the REQUEST object: dtml-call "REQUEST.set('myparam', myparam_value)" 2. call the Z SQL method with explicit parameters: dtml-in "myMethod(myparam= myparam_value, )" Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: (no subject)
jacintha menezes writes: I have developed a product in windows 95/98. Is it possible to port that product to NT Machine. If so please tell me how?. Did you try it? What did not go? I expect it to work without any change. At least, if you speak of a Zope product. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZopeWeaver?
From: Dieter Maurer [EMAIL PROTECTED] Date: Thu, 30 Nov 2000 00:05:30 +0100 (CET) Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] ([EMAIL PROTECTED]) X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Length: 517 albert boulanger writes: One trick I use on my NT box is to use Dreamwaver for all the major html content which end in a .html extension and htmlkit for the index_html and like files. Place a DTML method(!) "index_html" high in your Zope hierarchy with the following code: dtml-var index.html From then on, you can happily create "index.html" below that point in the hierarchy. It will be used as the default folder view. In fact, "index_html" is used but that redirects to "index.html". Yup. This is what I do and use htmlkit for those small index_html or other DTML method files that don't represent html content, but more logic. Albert ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Factoids for supporting zope
Dennis Nichols [EMAIL PROTECTED] wrote: At 11/28/00 11:34 AM, albert boulanger wrote: From: "Chris McDonough" [EMAIL PROTECTED] Ah. Well, my opinion is that it'd be fairly dangerous to make the assertion that (as great as they both are) Zope and the Zope community can "make up for" the other half of the capital they need to develop the software they want. So what's the decision they're trying to make? Whether to develop at all? Whether to go with portal products from Plumtree or iPlanet. If this implies that you are considering using Zope's PTK, then you should be aware of this: You can *not* get commercial support from Digital Creations for PTK because PTK is not a released product. If you think you may need such support before PTK gets to 1.0, then you had best not use the PTK. But that's no reason to not use the rest of Zope. As the current product lead for the PTK, and a DC consultant who uses it every day in developing software for customers, I wouldn't say that your statement is, perhaps, misleading. While I'm not the person who negotiates support contracts for DC, I do know that DC sees the PTK as a key element of our future growth plans. In the meantime, most people get their support fo using the PTK from the place they get support for using Zope: right here on the lists: mailto:[EMAIL PROTECTED] http://lists.zope.org/pipermail/zope-ptk http://lists.zope.org/mailman/listinfo/zope-ptk (I watch the PTK tracker, as well). Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.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] Instance within Instance
Tim Cook wrote: Daryl, Import the DarylProduct.zexp into your Products folder. The DarylExample.zexp can go anywhere in you Zope tree. As luck would have it, the file did not import into Products (File /usr/local/Zope/lib/python/OFS/CopySupport.py, line 406, in _verifyObjectPaste) It DID import into the root folder (I did this purely by accident!) I was then able to recreate the called-for classes and IT WORKED!! I haven't figured out HOW yet but I will. Thanks a lot for the help, and let me know if you need any fancy Python methods... Cheers. -- "Where is the fancy bread, in the heart or in the head?" Daryl Stultz - python, zope, blender, robots, really bad harmonica playing... [EMAIL PROTECTED] RedHat Linux 6.1 - Dual Pentium Pro ___ 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] Re:External Methods
check out the urlencode function of urllib. kapil Kini Natekar wrote: Hi, I am currently running a external method .This method calls a python script using the following line a href=\"http://localhost/cgi-bin/test.py?%s+%s\"%s/a" %(name,age,gender) Instead of calling the python script we want to add the script as an external method in zope.The problem we are currently facing is in generating the above link dynamically. How do we solve the above problem ? Thanks, Kini. __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.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 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 roles to Zope in Product.initialize()
I wish to restrict the creation of a class (SpokeSite) to people with the "Add Spoke Site" permission, and in turn only provide that permission to people in the 'Super-manager' Role. When I call ProductContext.registerClass for my SpokeSite class, I can pass the permission argument with the tuple ('Add Spoke Site', 'Super-manager'), which does a good job of limiting the availability of my class (just as I desire). However, I would like my Product to automatically create the 'Super-manager' Role, if it doesn't exists. The bad part is that this role needs to be added before any of my objects exist, which makes it hard... I've got it *working* by cheating, and using the private __app attribute of the ProductContext. Is there a better way for python Products to alter the Zope installation (add Roles, create Folders, etc.) during installation? Thanks! -Randy
Re: [Zope] ZTopics not working right --Error Value: Vocabulary
Umesh Soni [EMAIL PROTECTED] wrote: Hi I am trying to use ZTopics to create a visual hierarchy. I've got ZTopics installed ok but I am having problems with using them. If I create a top level ZTopic all is well and the ztopic will filter my catalog fine. However, if I try to create a hierarchy -even if only one level deep, I get the following error. Error Type: AttributeError Error Value: Vocabulary Traceback (innermost last): File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.2.4b1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: index_html) File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py, line 180, in contents (Object: Traversable) File /usr/local/Zope-2.2.4b1-src/lib/python/Products/ZTopic/Topic.py, line 228, in _contentsSet (Object: Traversable) File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 401, in _apply_index File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 476, in query File /usr/local/Zope-2.2.4b1-src/lib/python/SearchIndex/UnTextIndex.py, line 196, in getLexicon AttributeError: (see above) I haven't a clue if the problem is with ZTopics or the lexicon stuff within zope. Anyone know what's going on here? Chris McDonough [EMAIL PROTECTED] responded: From what I remember, the TextIndex code wants to acquire the catalog's Vocabulary subobject. If you created your catalog without a Vocabulary (I think this is an option during the instantiation of a catalog), this can occur. This is arguably a bug. The vocabulary object should probably not be acquired. Do you think you can submit this to the "Collector" at Zope.org (http://classic.zope.org:8080/Collector)? Umesh replied: The catalog in question is the portal_catalog from the PTK which has an accompaning Vocabulary object. I will do as you requested and submit this to the Collector. umesh btw. I had to apply the following patch to ZTopic to rectify a mis-behaving user interface. --- topicEdit.dtml.old Wed Nov 29 10:49:53 2000 +++ topicEdit.dtml Wed Nov 29 09:16:02 2000 @@ -35,8 +35,8 @@ TR TD align="left" COLSPAN="2" - input type="submit" name="../editSearchForm:method" value="Edit" - input type="submit" name="../deleteSearch:method" value="Delete" + input type="submit" name="editSearchForm:method" value="Edit" + input type="submit" name="deleteSearch:method" value="Delete" /TD /TR /table The 'portal_catalog' object is actually a wrapper around a standard ZCatalog instance. I would look at 'ZTopics.Topic._contentsSet()' to see what it is trying to do with the catalog. I would log also log this as a PTK issue: http://www.zope.org/Products/PTK/Tracker rather than in the Collector (I don't believe it is a Zope issue, per se). Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.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] ZCatalog: Query Syntax
Chris, I also had great difficulty in finding any relevant documentation... (re: specifics regarding text and field searches against a ZCatalog)... So, it sounds like we should (a) make a feature request and (b) make a documentation request. I'm more than happy to write up and submit such requests. Heck, I'd been even happy to tackle coding the improvements, but I'd need someone very familiar with the ZCatalog implementation to give me some direction to get me going (i.e., how he or she would recommend the change be implemented). But, I'm quite new to the Zope world, and have no idea where one goes to request a feature, or request documentation, or even where one goes to offer help coding. Anyone want to point me in the right direction? ;-) Cheers, Doug Morse [EMAIL PROTECTED] On Wed, Nov 29, 2000 at 02:38:30PM +, Chris Withers wrote: Andy McKay wrote: I am curious: Do others think this feature might be worth adding to the ZCatalog? If so, perhaps it should work its way into a proper feature request... Yes definitely. Well, where is the query syntax for ZCatalog actually documented? It'd be great if it was more flexible, applied to indexes other than TextIndexes and was actually documented... Any ideas? Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Ah, I found it -- Estimate of community size
albert boulanger [EMAIL PROTECTED] wrote: Now, I wonder wich statement is more accurate: http://www.zope.org/Documentation/ZWN/ZWN-2000-09-26/index_html?pp=1 Zope Web by Ethan Fremen Exorcising Zope.org The extremely large Members folder (11139 of you!) and acl_users folder was causing Zope.org to load nearly 50 MB of "Ghosts" - stateless objects - into memory. or From: http://www.zope.org/Documentation/ZWN/ZWN-2000-11-08 "Zope Web by Ethan Fremen How Many Zopatistas? [] There are 1617 members of [EMAIL PROTECTED] and 409 members of zope-dev. There are 200,000 unique visits to zope.org every month (ok, that's a record :). All items are factual, and accurate for the dates they were posted. Which is more "interesting" is an exercise in punditry: * 11000+ members have signed up on the www.zope.org website. * 1617 people subscribe to the [EMAIL PROTECTED] mailing list, which seems to average 70+ messages per day (2000+ per month). * 409 subscribe to [EMAIL PROTECTED], which runs around 20 messages per day / 600 per month. * The zope.org websites have been averaging 200,000 unique visits per month. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.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 )
[Zope] python methods
Hi, Is there any way to get access to inbuild python functions like 'filter' and 'lambda' within pythonMethods? terry -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions (www.adroit.net) Phone: +61 3 9563 4461 Fax: +61 3 9563 3856 ICQ: 79303381 ___ 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] adding roles to Zope in Product.initialize()
No... the stock answer is "use local roles". I had a proposal up to create an interface for programmatically adding roles on dev.zope.org but it's quite dead. The thought behind this is that actual roles are reserved for administrator usage, not developer usage. Which leaves us in sort of this weird state that I'm not completely comfortable with, but don't have time to argue. :-) - Original Message - From: Randall Kern To: [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 9:12 PM Subject: [Zope] adding roles to Zope in Product.initialize() I wish to restrict the creation of a class (SpokeSite) to people with the "Add Spoke Site" permission, and in turn only provide that permission to people in the 'Super-manager' Role. When I call ProductContext.registerClass for my SpokeSite class, I can pass the permission argument with the tuple ('Add Spoke Site', 'Super-manager'), which does a good job of limiting the availability of my class (just as I desire). However, I would like my Product to automatically create the 'Super-manager' Role, if it doesn't exists. The bad part is that this role needs to be added before any of my objects exist, which makes it hard... I've got it *working* by cheating, and using the private __app attribute of the ProductContext. Is there a better way for python Products to alter the Zope installation (add Roles, create Folders, etc.) during installation? Thanks! -Randy ___ 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: Query Syntax
The place to start might be to actually help write some documentation. There is a docs process description at http://dev.zope.org/Wikis/DevSite/Projects/DocumentationProcess/Documentatio nGuide . This should at least give you an idea of how to proceed. - Original Message - From: "Doug Morse" [EMAIL PROTECTED] To: "Chris Withers" [EMAIL PROTECTED] Cc: "Andy McKay" [EMAIL PROTECTED]; "Dieter Maurer" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 9:38 PM Subject: Re: [Zope] ZCatalog: Query Syntax Chris, I also had great difficulty in finding any relevant documentation... (re: specifics regarding text and field searches against a ZCatalog)... So, it sounds like we should (a) make a feature request and (b) make a documentation request. I'm more than happy to write up and submit such requests. Heck, I'd been even happy to tackle coding the improvements, but I'd need someone very familiar with the ZCatalog implementation to give me some direction to get me going (i.e., how he or she would recommend the change be implemented). But, I'm quite new to the Zope world, and have no idea where one goes to request a feature, or request documentation, or even where one goes to offer help coding. Anyone want to point me in the right direction? ;-) Cheers, Doug Morse [EMAIL PROTECTED] On Wed, Nov 29, 2000 at 02:38:30PM +, Chris Withers wrote: Andy McKay wrote: I am curious: Do others think this feature might be worth adding to the ZCatalog? If so, perhaps it should work its way into a proper feature request... Yes definitely. Well, where is the query syntax for ZCatalog actually documented? It'd be great if it was more flexible, applied to indexes other than TextIndexes and was actually documented... Any ideas? Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ 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] Instance within Instance
Tim Cook wrote: Well, Tim, I'm sorry to say I am back where I started :-( I took your (working) example and modified it. I want to be able to add the MyClass1/MyClass2 combo from the management interface (the add product thing). I combined all the code into MyClass1_add. If I use this: dtml-with "manage_addProduct['DarylExample']" dtml-call expr="MyClass2_add(_.None, _, NoRedir=1)" /dtml-with I get a permission denied error. If I remove the with wrapper, I get the MyClass2 instance, but ALONGSIDE rather than within the MyClass1 instance. This is pretty much the same thing I got before you sent me the product so I guess I wasn't that far off :-) I fooled around with permissions as much as I could and couldn't make it work. Any ideas there? Thanks again. -- "Where is the fancy bread, in the heart or in the head?" Daryl Stultz - python, zope, blender, robots, really bad harmonica playing... [EMAIL PROTECTED] RedHat Linux 6.1 - Dual Pentium Pro ___ 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] Is there an interest for Zope classes taught in Europe
Digital Creations is considering offering Zope classes for the European market with perhaps two classes in the Springtime in 2001. We are asking for your input on: 1) are there any students interested in attending? 2) suggestions for class locations and dates? 3) price has not been set yet and may vary according to location costs. 4) most likely the classes would be taught in English 5) what other languages? 6) are there qualified multi-lingual Zope instructors? Comments, other ideas, suggestions or, any students interested, please reply to [EMAIL PROTECTED] --Gary Gary Graham [EMAIL PROTECTED] Director, Sales Marketing Digital CreationsFredericksburg, Virginia mobile: 540.840.3813 office: 540.372.9971 direct eFax: 781.394.7868 Creators of Zope: The Open Source Application / Content Management Server www.zope.org 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] Factoids for supporting zope
One query about your plans for PTK. In my opinion it would be good to incorporate into it, at some level, capability like Microsoft's Digital Dashboard -- you know like mynetscape.com edit capabilities. (Actually the use of dynamic html in Excite's version of the same thing is nicer.) I would think that this functionality is factorable enough to make it a separate product. Has anyone have plans to do such a thing? Regards, Albert Boulanger [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] adding roles to Zope in Product.initialize()
On Wed, 29 Nov 2000, Randall Kern wrote: By "use local roles", you mean do it manually, through the web ui? I don't see how I could create a local role from code either, since none of my objects have been created yet. You can do it in the manage_afterAdd() method of your class: ---CUT--- def manage_afterAdd(self, item, container) : # create the role only if it doesn't exist (acquisition) if "yourrole" not in container.valid_roles() : self._addRole("yourrole") # # here you may need to call the manage_afetrAdd() method # of you base class # e.g.: Folder.manage_afterAdd(self, item, container) ---CUT--- So the role will be created in your instance during its creation, but only if doesn't exist yet (or can't be acquired from the above level). hoping this will help. Jerome Alet ___ 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 )