[Zope] cross-referencing product
I need to cross-reference a bunch of links in my pages so that I can tell which of my documents is using the one I'm editing. This must be a common requirement so has anyone else already done this? -- 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] LDAP variable problem
Hi. I was inserting the "missing= " statement into the key. In fact, I don't get the key error anymore. But unfortunately, I don't get the values of the sn attribute either. The method just returns me an empty line for every LDAP entry. How can I access the LDAP attributes? any ideas? Thanks a lot. Marc Ludwig Luxembourg At 14:29 12.11.2000 +1100, you wrote: >Hi Zopistas, > >Firstly, a big thank you to all thos epeople who helped me with KeyError >problem when accessing LDAP entries. >Just so the solution makes it onto the mailing list archive (for the next >bunny who has the same problem) the solution was to add the following to >each of your variables > >missing= > >...so that when Zope came across entries without that attribute it didn't >barf. > >I now have one last problem. I can now access all entries from the LDAP >directory using the notation - all except >one - the "title" attibute . > >I am guessing that it is because Zope uses "title" to reference the title >of the object in the zope database, and therefore won't let you get at the >ldap variable using the normal: > notation. > >Is there any way I can pinpoint the LDAP variable instead of the object >title in zope? I have no control over the ldap server and attributes name, >so I can't change it at that end. > >When I test the LDAP filter method I can see the variable (it lists all of >the attributes of the LDAP record), but I can't reference it in DTML. >My filter method is called 'Academics' and just extracts a list of >academics in the biology department here at Monash University. I'm sure >there must be a way using python notation, but not being a python expert >(yet!), I could do with a few clues... > > >Any ideas? > >Thanks again... > > - Michael >~~~ >Michael Blewett >Computer Support Mgr - Biological Sciences >Monash University (Clayton Campus) >Victoria Australia 3168 > >"I'm out of my mind at the moment, but feel free to leave a message..." > > > > >___ >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] Newbie question(s)
"Bowyer, Alex" wrote: > > Hi, > > I have what I'm sure is a very simple question about Zope programming style: > I want to count how many objects are contained in the current container > object and then do something with that value, but I can't do the bit I need > to do at the point of reading the count variable because I am in the wrong > namespace. > I can't begin a dtml-let because I would need to close dtml-if before > dtml-let, which is not allowed. > > > > > > > > try (untested): > What is the "accepted" way of passing a value into a different scope? Do I > have do a REQUEST.set or is there a tidier way? > Also I think I read somewhere that you can use the object.subobject or > object.property syntax but I never got that to work, what's the catch? note that this is a Python expression and the code between quotes has Python behaviour. > > One last thing, I sent a couple of mails to the list about problems I had > with manage_delObjects. I still haven't got it to work. Since the best way > to learn Zope is by example, I wonder if anyone could direct me to a sample > piece of code where a container of some sort deletes one of its children > subobjects? > > try (untested): .manage_delObjects([id1, id2, ..])"> hth Rik ___ 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] Cloning a ZClass-Instance
Hallo Chris, my reply is late but the problem is already not solved. I've build a simple ZClass 'News' with base-classes 'ZObject, ZObjectManager'. I haven't changed the permission-settings in the product. The script working on the objects is this: -- -- The response of Dieter Maurer was, that it is a permission problem -->"Either you are not allowed to call the ZClass constructor at the destination, or you are not allowed to access the object to be cloned at the destination." I'm trying to execute the operation with the role 'manager' That's the traceback: -- The object holle does not support this operation Traceback (innermost last): File C:\Zop\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Zop\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Zop\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\Zop\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Zop\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: NewsPruefer) File C:\Zop\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: NewsPruefer) File C:\Zop\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: NewsPruefer) File C:\Zop\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: NewsPruefer) File C:\Zop\lib\python\DocumentTemplate\DT_In.py, line 607, in renderwob (Object: objectValues(['news'])) File C:\Zop\lib\python\DocumentTemplate\DT_Let.py, line 147, in render (Object: x="_.getitem('sequence-item')") File C:\Zop\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval (Object: manage_clone(x,'versuch',REQUEST)) (Info: REQUEST) File , line 0, in ? File C:\Zop\lib\python\OFS\CopySupport.py, line 321, in manage_clone (Object: holle) File C:\Zop\lib\python\OFS\CopySupport.py, line 402, in _verifyObjectPaste (Object: holle) Copy Error: (see above) Thanks and Bye Sven ___ 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] make sequence-item into sequence_item!
Steve Drees wrote: > > > It might be that fixing one or both of the above would reduce the DTML > > pain factor quite a bit. Certainly, it's time to do whatever it takes > > to banish these "-"-named variables, IMHO. > > Agreed. But DC always raises objections when this is brought up. why?! 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] HiperDom
Lalo Martins wrote: > > On Fri, Nov 10, 2000 at 10:28:44AM +, Chris Withers wrote: > > > > Oh yeah, while I'm here, how's the HiperDOM project getting on? That > > stuff would be raally useful for a project here... > > HiperDom is usable right now; we've been quite quiet because > we're working on documentation and unit testing (and to have > unit testing, we had to have ZUnit). > Right now, we would "raally" encourage you to use HiperDom > in your project, specially if the deployment schedule >= 2 > months, and then please send us that feedback :-) I'd love to, but it'd be 'raally' helpful to have some documentation and a download with some explanation/help for someone as brain dead as me on a Monday morning ;-) Is that available yet? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] User Source choices
We had a close look at all products available for sroting users in a sql db. We tested: GUF-- did not work with Zope 2.2.x (yet) MySQLUserFolder -- colleague of mine had some trobles o this thing being outdated UserDB -- works for us, but has some logical problem that has an impact on performance when having a lot of users. We will try to fix that asap. LoginManager -- thoug being called the best here is it did not yet work for us. We would like to get things started up with LoginManager but constantly fail to get it up and running. As a Database we are using MySQL without any problems so far. - Holger PS: you might want to visit zdp.zope.org and look under Zope FAQ -> Topic 14. "Scalability" for a FAQ about user folders. Am Dienstag, 7. November 2000 14:35 schrieben Sie: > This is a bit off-topic, but I wondered if anyone has any opinions on > the matter. > > I'm going to use LoginManager for my user folder stuff, and I'm > wondering which type of DB to use to store user information. > > Has anyone any advice about this? Here's some of the free choices with > what I know about them: > > MySQL is my first choice because I know it well > postgres has transactions, stored procedures, but can scale badly > SyBase I know nothing about > LDAP (e.g. OpenLDAP) is optimised for this kind of thing, but I'm not sure > I've quite grokked it yet > > Should my choice be dependent on the quality of the adapters available, > or are all the adapters much the same? > > any comments appreciated, > > 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 ) -- --- catWorkX GmbH Hamburg Dipl.-Ing. Holger Lehmann Stresemannstr. 364 22761 Hamburg Tel : +49 40 890 646-0 Info: 0700 catWorkX ( 0700 22 89 67 59 ) Fax : +49 40 890 646-66 mailto:[EMAIL PROTECTED] http://www.catworkx.de http://www.catbridge.de ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Higher Educatoin Portal/Admin
Greetings! I'd like to know if there are any activities regarding use of Zope to build/support educational systems. I have searched the list and there seem to be a few, but I cannot find out how to contact the peoiple involved. My main interest lies in building administrative systems that ease the task of planning and administering courses, staff and student info, schedules, publishing info about courses, events, etc, as well building or supporting systems that will let teachers build and integrate on-line courses with existing admin systems (although this is secondary; there are better systems that do this allready). This is not an easy task, of course, because it involves a lot of analysing the needs of an educational organisation as well as reviewing how the organisation works, how the students preceivethe service the receive, etc, etc. In other words, a lot of process development, instead of "technical" development. I am currently heavily involved in such a project. Among other things, I'd like to have a serious discussion on the pros and cons of building such a site/portal/whatever with Zope and why it is better to choose Zope, instead of, say, Turbine in a combination with Jetspeed, which much more "buzzword" (read Java) compliant. The recent instabilities and slow response times experienced with the zope.org site and the incomplete, possibly unstable, state of DCOracle, the Oracle adapter (and similar concerns with some other needed Zope Products) has been raising some questions of the suitability of Zope for this kind of project. On the other hand, I fail to see an alternative to Zope; of course there are better CMS'es, better development platforms, better Oracle support elsewhere, and so on, but neither of those systems has the combination of integrated features and modularity of Zope. I am very interested in talking, even building a Zope SIG, with more people that interested in these issues. The traffic on the main Zope list is too heavy, and I feel this issue is better of maintained in a parallel list. I also would like to know if there is interest from Digital Creations in this matter. What do you people think? Feed(back) me! :) Sincerely, /dario - Dario Lopez-Kästen Systems Developer Chalmers Univ. of Technology [EMAIL PROTECTED] ICQ will yield no hitsIT Systems & Services ___ 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] Website search
All the docs I found about searching are for searching inside the manage interface or for dtml-code only etc. I am just looking for a simple description, of how to include a simple search interface on my website (not in the manage interface). The available descriptions of ZCatalog are so complicated and programmer-oriented that I am not sure, if it is really the thing I need. So what's the simplest way to do a search on a website? _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] HiperDom
Chris Withers wrote: > > Lalo Martins wrote: > > > > On Fri, Nov 10, 2000 at 10:28:44AM +, Chris Withers wrote: > > > > > > Oh yeah, while I'm here, how's the HiperDOM project getting on? That > > > stuff would be raally useful for a project here... > > > > HiperDom is usable right now; we've been quite quiet because > > we're working on documentation and unit testing (and to have > > unit testing, we had to have ZUnit). > > > Right now, we would "raally" encourage you to use HiperDom > > in your project, specially if the deployment schedule >= 2 > > months, and then please send us that feedback :-) > > I'd love to, but it'd be 'raally' helpful to have some documentation > and a download with some explanation/help for someone as brain dead as > me on a Monday morning ;-) > > Is that available yet? I believe you should be able to import it and use the example document in the distribution (after you applied the patch also in the distribution and imported it into Zope). On the other hand: I did that, and Hiperdom would neither expand nor display, in both giving some xml Node exception. So in fact I thought it was still under construction. The 'patching' was on win32 and manual, so I probably did something wrong ;-(. However, in a python test setup the module did work (?) Rik ___ 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] Website search
[Stephan Goeldi] | So what's the simplest way to do a search on a website? If you're running Zope in combination with other web applications, ht://Dig may be the Right Thing (tm). See http://www.htdig.org for more info. HTH. -Morten ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Test - Is both the maillist and www.zope.org down?
??? ___ 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] HiperDom
Rik Hoekstra wrote: > > I believe you should be able to import it and use the example document > in the distribution (after you applied the patch also in the > distribution and imported it into Zope). Hurgh? Where di you find all this out? Hwo do you use it when it is installed? > On the other hand: I did that, and Hiperdom would neither expand nor > display, in both giving some xml Node exception. So in fact I thought it > was still under construction. The 'patching' was on win32 and manual, so > I probably did something wrong ;-(. However, in a python test setup the > module did work (?) Hmmm 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] Test - Is both the maillist and www.zope.org down?
Max Møller Rasmussen wrote: > > ??? Hm, the list seems to be up, but not so zope.org ... I've bee trying now for about 4 hours or so ... regards, ta -- smartferret it-consulting Dipl.-Ing. Linzbichler KEG Dipl.-Ing. Takashi Veikko Linzbichler Tannhofweg 28/3 A-8044 Graz, Austria Tel.: 0316 / 39 89 40 -0 Fax:0316 / 39 89 40 -20 Mobil: 0676 / 31 26 286 eMail: [EMAIL PROTECTED] WWW:http://www.smartferret.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] Can I run Zope with i-Planet?
Hi, I did it when its name was still Netscape Enterprise server, so I suppose it should not be too big a problem. I can't remember how to do that... you have to use FastCgi I believe. -Original Message- From: Plaza Diez, Antonio To: '[EMAIL PROTECTED]' Sent: 11/13/00 8:49 AM Subject: [Zope] Can I run Zope with i-Planet? - Can I run Zope with i-Planet Web Server? - How can I do this? -Where can I found some Documentation about it? ___ 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] Advanced search in Zcatalog...
Hi! I´m trying to discover how to make a ZCatalog perform queries on several "fields" (as in the property sheets) of the cataloged objects, but with no sucess. I´d like to execute queries using a "or" chain of tokens, to be applied on several fields of the cataloged objects, given that each field has a priority in the search results. Any ideas on how to implement this? I´ve tried several approaches with absolutely no sucess, and I´m pretty stuck, so any help will be welcome. Thanks, Daniel Dias Do You Yahoo!? Crie o seu e-mail grátis do Yahoo! Mail com 6 Megabytes livres! http://mail.yahoo.com.br ___ 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] HiperDom
> > > > I believe you should be able to import it and use the example document > > in the distribution (after you applied the patch also in the > > distribution and imported it into Zope). > > Hurgh? Where di you find all this out? Hwo do you use it when it is > installed? The patching is from the readme in the distribution. The download is/was(?) on http://www.zope.org/Members/lalo/Hiperdom The use of the thing is not quite clear, but there is a help included with it, including syntax help. i think I figured out the example template by myself, but I wouldn't describe that as hard ;-) > > > On the other hand: I did that, and Hiperdom would neither expand nor > > display, in both giving some xml Node exception. So in fact I thought it > > was still under construction. The 'patching' was on win32 and manual, so > > I probably did something wrong ;-(. However, in a python test setup the > > module did work (?) > > Hmmm > _I f_ you get it to dance for you, please mail me how you did it. I'd like to get this working as well Rik ___ 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] Sybase (again?)
Hi, We are using Zope 2.1.6, Sybase 11.9.2, Sybase DA 2.00b2 on Suse Linux 6.4 and 7.0, stored procedures just work fine. Zope 2.2.x has a problem with Sybase, a patch has been submitted and should come with the next release. Ralph On Fri, 10 Nov 2000, Chris McDonough wrote: > SybaseDA AFAIK does not support stored procedures. > > "Manuel Amador (Rudd-O)" wrote: > > > > Well, > > > > After no one else answered my last email about zope, I've decided to > > summarize what's going on with the ZSybaseDA so as to see if someone > > takes interest. > > > > STORED PROCEDURES DO NOT WORK. Anything else, however, does. Once a > > stored procedure was called, the db object is blocked till zope > > restarts. > > > > Any patches, solutions, suggestions? > > > >Manuel > > > > -- > Chris McDonough > Digital Creations, Publishers of Zope > http://www.zope.org > -- -- Ralph Heinkel Cenix Bioscience GmbH Director of the IT-UnitTel : +49 6221/387 915 Meyerhofstr. 1 Fax : +49 6221/387 971 69117 Heidelberg, Germany eMail: [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How to access column names in DTML Methods
Hi all, I'm trying to display the column names of a Record object without success. I'm able to access column data using sequence-item but I don't know how to display column names. (Previous results) ?HEADER (Next results) There was no data matching this query. Thanks for any help José ___ 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] Building dynamically class instances using external methods.
Question: I am running Zope2.2.2 under python1.5.2 on a linux machine. The following situation: I have an external Method which creates dynamically an instance from of a class depending on some input to a function contained in this method. In short the code (of the external method) class Classname: def function1 def function2 ..etc. def createInstance(argument) x = Classname(argument) return x Where createinstance is the method that is invoked initially from zope. Everything works fine, the method returns something like using "__allow_access_to_unprotected_subobjects__ = 1" in the class definition it is possible to access all methods of the class within Zope. Among others the class holds a method 'dump' who should 'pickle' the objects instance (using the python 'pickle' module), more precise should return a string represantion of itself. This works fine when tested in a normal python session. (where the method returns contrary to above: <__main__.Classname instance at ...>) Called from Zope this does not work. The pickle module raises an error: .. File /usr/lib/python1.5/pickle.py, line 818, in dump File /usr/lib/python1.5/pickle.py, line 97, in dump File /usr/lib/python1.5/pickle.py, line 198, in save File /usr/lib/python1.5/pickle.py, line 400, in save_inst Error type: Attribute error, Error Value: __module__ QUESTION: Is there any possibility to get these things work. ? (or is it really awkward stuff ???) Maybe related questions: QUESTION 2: What does the "?" mark in the generated objects string representation means ? Is it neccessary to 'anchor' (sorry for my terminology) the object within some other object ? And: QUESTION 3: The lifetime of an instance has should not to be longer than the current REQUEST is performed, is there any possibility to create the instance as an subobject of the current REQUEST ?? Any help and advice would be highly appreciated... regards Hannes. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Higher Educatoin Portal/Admin
On Mon, 13 Nov 2000, Dario Lopez-Kästen wrote: dario> I am very interested in talking, even building a Zope SIG, with more people dario> that interested in these issues. The traffic on the main Zope list is too dario> heavy, and I feel this issue is better of maintained in a parallel list. I dario> also would like to know if there is interest from Digital Creations in this dario> matter. dario> dario> What do you people think? Feed(back) me! :) I'm experiencing the same kind of situation and problems you are. We are in the process of choosing a tool for educational purposes (an integrated service for thousands of public instituitions, mainly schools). The choice will be between zope and oracle portal 3.0 (zope is my personal choice). If we choose zope I'd be very interested in your idea of a Zope SIG for these matters. Best regards, Tiago Antão ___ 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] HiperDom
On Mon, Nov 13, 2000 at 01:14:51PM +0100, Rik Hoekstra wrote: > > On the other hand: I did that, and Hiperdom would neither expand nor > display, in both giving some xml Node exception. So in fact I thought it > was still under construction. The 'patching' was on win32 and manual, so > I probably did something wrong ;-(. However, in a python test setup the > module did work (?) Which version of the XML-utils are you using? Please send me the traceback (privately), I'd like to see that. []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, 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 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] HiperDom
On Mon, Nov 13, 2000 at 10:03:06AM +, Chris Withers wrote: > Lalo Martins wrote: > > > > HiperDom is usable right now; we've been quite quiet because > > we're working on documentation and unit testing (and to have > > unit testing, we had to have ZUnit). > > > Right now, we would "raally" encourage you to use HiperDom > > in your project, specially if the deployment schedule >= 2 > > months, and then please send us that feedback :-) > > I'd love to, but it'd be 'raally' helpful to have some documentation > and a download with some explanation/help for someone as brain dead as > me on a Monday morning ;-) > > Is that available yet? As I said, we're currently focusing on documentation and unit testing; there is some quite basic documentation in the HelpSys which explains the syntax, and there is an example in the webpage at zope.org, plus one more (more or less the same example, but with the text in Portuguese) in exemplo_pt.html in the distribution. Better documentation is in the works, you can check the "Projects" wiki on dev.zope.org. []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, 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 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] Higher Educatoin Portal/Admin
"Dario Lopez-Kästen" wrote: > I'd like to know if there are any activities regarding use of Zope to > build/support educational systems. I have searched the list and there seem > to be a few, but I cannot find out how to contact the peoiple involved. http://www.zope.org/Wikis/zope-edu Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] DatabaseAdaptor Problem
Hi I'm having trouble to use a database adaptor. I attempted to use gvibDA for interbase but I got a python error (in a previous mail) so I tried with MySql but make procedure didn't find a mysql.h . My question is: where can I find this file? Is there anyone who can help me for interbase? Thank you Claudio Biasiolo Web Developer [EMAIL PROTECTED] VenicePlaza S.p.A. Padova, Italy ___ 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] Website search
I think installing ht://Dig is "programmer-oriented" and is not much more simple... ZCatalog is your best bet and its not that complicated really, its about as simple as you are going to get. The docs should give you a fairly simple explanation of how to add one. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Morten W. Petersen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, November 13, 2000 4:18 AM Subject: Re: [Zope] Website search > [Stephan Goeldi] > > | So what's the simplest way to do a search on a website? > > If you're running Zope in combination with other web applications, ht://Dig > may be the Right Thing (tm). > > See http://www.htdig.org for more info. > > HTH. > > -Morten > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope 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] Higher Educatoin Portal/Admin
[..] > The recent instabilities and slow response times experienced with the > zope.org site Zope.org isnt a typical site though, it has tens of thousands of pages of dynamic content and it's kept quite uptodate (in terms of Zope updates). They also recently admitted they will be moving to a faster box because their commodity box can't cope. I'm not saying it isn't somtimes slow, its just that its not typical. ___ 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] [ANNOUNCE] New Minimal product How-To
I think thats great. I like the move from Python to Zope. Nitpick: classes dont actually need a docstring. I'm thinking of doing one for folderish objects since I have used these quite a bit and think they are great. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Bak @ kedai" <[EMAIL PROTECTED]> To: "Max M" <[EMAIL PROTECTED]>; "Zope@Zope. Org" <[EMAIL PROTECTED]> Sent: Sunday, November 12, 2000 5:55 PM Subject: Re: [Zope] [ANNOUNCE] New Minimal product How-To > On Monday 13 November 2000 09:02, Max M wrote: > > Hi > > > > I have just added this Product How-To: > > > > http://www.zope.org/Members/maxm/HowTo/minimal_01/index_html > > > this kind of handholding is really great for us newbies. hoping to see the > continuation, e.g. nested products --Folderish_product > |-Product_item > > thanks for the enlightening doc. > > -- > > http://www.kedai.com.my/kk > http://www.kedai.com.my/eZine > > use Zope? then you got HOPE! > > > ___ > 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] Dr.Watson on NT
I have been running a Netscape WEB Server on an Alpha NT for 3-4 years and the Doctor Watson window being open has always denied access to the web server from a browser although other access is not stopped such as telnet and mapped disks. Finally, I set Doctor Watson not to pop up on alerts so I have to regularly access the Dr. Watson log file, but have not had web access denied since doing that. So, I don't think this is actually Zope related specifically but maybe WEB server in general. Thomas "Júlio Dinis Silva" wrote: > > Hi all, > Is there a NT guru in the house :-) > > Zope 222 > > Sometimes Zserver goes Zombie, I login on the machine and I see a > DrWatson Window. I close DrWatson window and the process automagically > restarts, and everything ok. > > Whenever this happens two logs are written in EventLogger: > -one is a Warning: Restarting Zope... > -one is a Info: starting Zope... > With a couple of seconds of distance in time between them. > > I can see something is puting ZServer zombie and I'm looking > at debug to find the sucker method :-) but this DrWatson > behaviour never seen by me before: could be Zope doing a Zombie Timeout and > restarting himself? If yes why does he hangs and only by closing the > DrWatson Window the python.exe process really restarts? > > Any comments, tips, Dr.Watson Guru? > Best Regards, > Júlio Dinis Silva > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) -- Rock and Rule Zope Rocks -- http://www.zope.org Python Rules -- http://www.python.org Thomas McMillan Grant Bennett Appalachian State University Computer Consultant IIIUniversity Library [EMAIL PROTECTED] http://www.library.appstate.edu/webmaster/ Voice: 828 262 6587 FAX:828 262 3001 Windows 95 is a 32-bit extension to a 16-bit patch for an 8-bit operating system that was originally coded for a 4-bit microprocessor. - Chris Dunphy Boot Magazine ___ 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 declining?
hi, I might atribute any decline in this list to one of several things: 1. Documentation has much improuved, thus people can look up the answers and not soly rely on this list. - Zope Book specificaly. - Training clases. 2. Many of the people are now way past the general skill level in this list and have lost interest. 3. Alt. sources of info like: irc.zope.net #Zope It's obvious when you see companies like www.cbsnewyork.com runing zope that it is gaining in market penetration. j. .. . Jason C. Leach ... University College of the Cariboo. .. On Mon, 13 Nov 2000, Max M wrote: > From: Hung Jung Lu > > >From the mailing list volume in the last 3 months, it is not hard to see > >that there is a steady decline. This compared to the trend of last two > years > >(doubling volume every year), should probably raise a red flag. > > My experience here is that the list isn't much help. It can be very hard to > get a question answered! > > Especially when it gets out of the "Hello World" level. > > And when a question eventually do get answered it is often terse and hard to > understand. > > It would be nice if more of the devlopers would spend some time on this > list, as it would really save those of us still learning a LOT of time. > > Coming from the Python list this is really a big difference. If I have a > Python question I get an answer very quickly from the top Python guys. On > this list I hardly ever see the top guys, and it can be really frustrating > sitting with a problem for hours or days knowing that somebody could solve > it in a few minutes. > > I am using the 2 minutes rule myself. Any qustion that I can answer in less > than 2 minutes I will. 2 minutes isn't to much so I can answer a reasonable > amount of questions and still get work done. When I get better I will be > able to solve harder problems in 2 minutes. > > If only somebody better would take 2 minutes to solve some of my questions > :-) > > Regards > > Max M > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Advanced search in ZCatalog
Hi! I´m trying to discover how to make a ZCatalog perform queries on several "fields" (as in the property sheets) of the cataloged objects, but with no sucess. I´d like to execute queries using a "or" chain of tokens, to be applied on several fields of the cataloged objects, given that each field has a priority in the search results. Any ideas on how to implement this? I´ve tried several approaches with absolutely no sucess, and I´m pretty stuck, so any help will be welcome. Thanks, Daniel Dias Do You Yahoo!? Crie o seu e-mail grátis do Yahoo! Mail com 6 Megabytes livres! http://mail.yahoo.com.br ___ 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] Form variables with same name as folder names
Hi. I am new to using Zope and just got stuck on the following problem. I am trying to use forms with an SQL database. I have a form with checkboxes and I use variables like FOO to capture the value. For example: The form has a post with the action to call a DTML document. In my DTML document I call a Z SQL Method called InsertMethod with REQUEST as the argument, for example InsertMethod(REQUEST). My Z SQL Method InsertMethod has arguments including FOO="" And then in the body of the Z SQL method I have: {code to insert into a database table} This working UNTIL I created a Folder named FOO. Then the value of FOO in the Z SQL method seemed to be the FOO folder and not FOO from REQUEST. My workaround was to call the variable FOOCHECKBOX. Two questions: 1) the ZSQL manual, http://www.zope.org/Documentation/Guides/ZSQL-HTML/ZSQL.1.4.4.html, says that the first lookup should be variables in HTTP_REQUEST. So why is FOO referring to my folder FOO? 2) is there some way I could have referred to the variable FOO in my Z SQL method without resorting to renaming the variable in my form? Thanks! *becky* ___ 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] Advanced search in ZCatalog
http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching is probably your best bet. -- Andy McKay, Developer. ActiveState. - Original Message - From: "daniel dias" <[EMAIL PROTECTED]> To: "ZopeList" <[EMAIL PROTECTED]> Sent: Monday, November 13, 2000 9:50 AM Subject: [Zope] Advanced search in ZCatalog > Hi! > I´m trying to discover how to make a ZCatalog perform > queries on several "fields" (as in the property > sheets) of the cataloged objects, but with no sucess. > I´d like to execute queries using a "or" chain of > tokens, to be applied on several fields of the > cataloged objects, given that each field has a > priority in the search results. > > Any ideas on how to implement this? I´ve tried several > approaches with absolutely no sucess, and I´m pretty > stuck, so any help will be welcome. > > Thanks, > > Daniel Dias > > > > Do You Yahoo!? > Crie o seu e-mail grátis do Yahoo! Mail com 6 Megabytes livres! > http://mail.yahoo.com.br > > ___ > 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] Advanced search in ZCatalog
Usually, I use an external method returning a string containing the text from all the fields I want to search on, and I index THAT field in the Catalog. It works great! Jean-François Ménard Intranet DPAS Pratiques d'affaires et orientations *(514) 840-3000 poste 3939 * (514) 840-5585 * [EMAIL PROTECTED] * 855 Ste-Catherine est, 6e étage Montréal, Qué. H2L 4P5 -Message d'origine- De : daniel dias [mailto:[EMAIL PROTECTED]] Envoyé : lundi 13 novembre 2000 12:51 À : ZopeList Objet : [Zope] Advanced search in ZCatalog Hi! I´m trying to discover how to make a ZCatalog perform queries on several "fields" (as in the property sheets) of the cataloged objects, but with no sucess. I´d like to execute queries using a "or" chain of tokens, to be applied on several fields of the cataloged objects, given that each field has a priority in the search results. Any ideas on how to implement this? I´ve tried several approaches with absolutely no sucess, and I´m pretty stuck, so any help will be welcome. Thanks, Daniel Dias Do You Yahoo!? Crie o seu e-mail grátis do Yahoo! Mail com 6 Megabytes livres! http://mail.yahoo.com.br ___ 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] help
Well I Installed Zope But When I Want To Add A Folder Or A File The Next Mesagge Apearse to me Well I have This Permitions in every file of the zope 777 nobody:nobody With Red Hat 6.2 Zope Error Zope has encountered an error while publishing this resource. Error Type: SuperCannotOwn Error Value: Objects cannot be owned by the superuser Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /root/src/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addFolder) File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addFolder) File /root/src/Zope-2.2.2-src/lib/python/OFS/Folder.py, line 116, in manage_addFolder File /root/src/Zope-2.2.2-src/lib/python/OFS/ObjectManager.py, line 267, in _setObject (Object: ApplicationDefaultPermissions) File /root/src/Zope-2.2.2-src/lib/python/AccessControl/Owned.py, line 271, in manage_fixupOwnershipAfterAdd (Object: Traversable) SuperCannotOwn: (see above) Well I Will Be Waiting your Answer thanks For Your Help Sincerly Manuel Alejandro Peña Sànchez ___ 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] Calling obj. in index_html
hi, I have an external fs object called ftp, in a folder called ftp. I had to put it in the folder so I could add users and what not. I would like to call the object in my index_html so I can do: http://www.bla.com/ftp rather than http://www.bla.com/ftp/ftp Can somone help w/ the dtml call? Thanks, 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] Calling obj. in index_html
Put in the first ftp folder. This will only work on the index_html. To "skip" the entire folder you will need an access rule. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Jason C. Leach" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 13, 2000 11:12 AM Subject: [Zope] Calling obj. in index_html > hi, > > I have an external fs object called ftp, in a folder called ftp. I had to > put it in the folder so I could add users and what not. I would like to > call the object in my index_html so I can do: > http://www.bla.com/ftp rather than http://www.bla.com/ftp/ftp > > Can somone help w/ the dtml call? > > Thanks, > 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 ) > ___ 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
This refers to the user in Zope and has nothing to do with the file system. You must go into acl_users create a new user, then close your browser an log back in again as that user. The superuser is kind of an "emergency access only" user. I think we need an FAQ on this question, isn't there one around? -- Andy McKay, Developer. ActiveState. - Original Message - From: "Padrino" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 13, 2000 11:23 AM Subject: [Zope] help > Well I Installed Zope > But When I Want To Add A Folder Or A File The Next Mesagge Apearse to me > > Well I have This Permitions in every file of the zope > 777 > nobody:nobody > With Red Hat 6.2 > > Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: SuperCannotOwn > Error Value: Objects cannot be owned by the superuser > > > > Troubleshooting Suggestions > > The URL may be incorrect. > The parameters passed to this resource may be incorrect. > A resource that this resource relies on may be encountering > an error. > > For more detailed information about the error, please refer to > the HTML source for this page. > > If the error persists please contact the site maintainer. Thank > you for your patience. > > > > > Traceback (innermost last): > File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line > 222, in publish_module > File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line > 187, in publish > File /root/src/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 221, > in zpublisher_exception_hook > File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line > 171, in publish > File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/mapply.py, line > 160, in mapply > (Object: manage_addFolder) > File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line > 112, in call_object > (Object: manage_addFolder) > File /root/src/Zope-2.2.2-src/lib/python/OFS/Folder.py, line 116, in > manage_addFolder > File /root/src/Zope-2.2.2-src/lib/python/OFS/ObjectManager.py, line > 267, in _setObject > (Object: ApplicationDefaultPermissions) > File /root/src/Zope-2.2.2-src/lib/python/AccessControl/Owned.py, line > 271, in manage_fixupOwnershipAfterAdd > (Object: Traversable) > SuperCannotOwn: (see above) > > Well I Will Be Waiting your Answer thanks For Your Help > > Sincerly > Manuel Alejandro Peña Sànchez > > > ___ > 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
You need to add a user. The superuser cannot own any objects inside zope. Go to the folder called acl_users and add a user with manager permissions. Close all copies of your browser. Open a new one and login as the new user. Then you will be able to add objects. See also: http://www.zope.org/Members/michel/ZB/ Troy -Original Message- From: Padrino [mailto:[EMAIL PROTECTED]] Sent: Monday, November 13, 2000 1:24 PM To: [EMAIL PROTECTED] Subject: [Zope] help Well I Installed Zope But When I Want To Add A Folder Or A File The Next Mesagge Apearse to me Well I have This Permitions in every file of the zope 777 nobody:nobody With Red Hat 6.2 Zope Error Zope has encountered an error while publishing this resource. Error Type: SuperCannotOwn Error Value: Objects cannot be owned by the superuser Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /root/src/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addFolder) File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addFolder) File /root/src/Zope-2.2.2-src/lib/python/OFS/Folder.py, line 116, in manage_addFolder File /root/src/Zope-2.2.2-src/lib/python/OFS/ObjectManager.py, line 267, in _setObject (Object: ApplicationDefaultPermissions) File /root/src/Zope-2.2.2-src/lib/python/AccessControl/Owned.py, line 271, in manage_fixupOwnershipAfterAdd (Object: Traversable) SuperCannotOwn: (see above) Well I Will Be Waiting your Answer thanks For Your Help Sincerly Manuel Alejandro Peña Sànchez ___ 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] Advanced search in ZCatalog
Hi ! [EMAIL PROTECTED] wrote: > > Usually, I use an external method returning a string containing the text > from all the fields I want to search on, and I index THAT field in the > Catalog. It works great! Isn't that what PrincipiaSearchSource is used for ? BTW: I know that PrincipiaSearchSource can be an external method, but maybe someone knows whether it could also be a DTML Method ? Regards, Maik Röder ___ 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
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Padrino >Error Type: SuperCannotOwn >Error Value: Objects cannot be owned by the superuser This is a Zope security feature that is confusing the first time you meet it. the Zope super user cannot own objects in Zope. Just add a new user in acl_user in your Zope root and give that user Manger rights. Then you can do what you expect. Regards Max M Btw. You should probably use a more descriptive subject in your e-mails. It was by coincidence that I opened it. "Help" isn't terribly descriptive and time is short. ___ 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
-Original Message- From: Padrino <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: 13 íîÿáðÿ 2000 ã. 22:40 Subject: [Zope] help >Error Type: SuperCannotOwn >Error Value: Objects cannot be owned by the superuser ^^ this is the answer (: create a new user, login as the newly created user and try to do what you wanted. regards -- pashah ___ 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
BTW: Im not a Unix guru but I dont think having everythin 777 is the most secure way of maintaining your installation... -- Andy McKay, Developer. ActiveState. - Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: "Padrino" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, November 13, 2000 11:37 AM Subject: Re: [Zope] help > This refers to the user in Zope and has nothing to do with the file system. > You must go into acl_users create a new user, then close your browser an log > back in again as that user. The superuser is kind of an "emergency access > only" user. > > I think we need an FAQ on this question, isn't there one around? > -- > Andy McKay, Developer. > ActiveState. > > - Original Message - > From: "Padrino" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, November 13, 2000 11:23 AM > Subject: [Zope] help > > > > Well I Installed Zope > > But When I Want To Add A Folder Or A File The Next Mesagge Apearse to me > > > > Well I have This Permitions in every file of the zope > > 777 > > nobody:nobody > > With Red Hat 6.2 > > > > Zope Error > > > > Zope has encountered an error while publishing this resource. > > > > Error Type: SuperCannotOwn > > Error Value: Objects cannot be owned by the superuser > > > > > > > > Troubleshooting Suggestions > > > > The URL may be incorrect. > > The parameters passed to this resource may be incorrect. > > A resource that this resource relies on may be encountering > > an error. > > > > For more detailed information about the error, please refer to > > the HTML source for this page. > > > > If the error persists please contact the site maintainer. Thank > > you for your patience. > > > > > > > > > > Traceback (innermost last): > > File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line > > 222, in publish_module > > File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line > > 187, in publish > > File /root/src/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 221, > > in zpublisher_exception_hook > > File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line > > 171, in publish > > File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/mapply.py, line > > 160, in mapply > > (Object: manage_addFolder) > > File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line > > 112, in call_object > > (Object: manage_addFolder) > > File /root/src/Zope-2.2.2-src/lib/python/OFS/Folder.py, line 116, in > > manage_addFolder > > File /root/src/Zope-2.2.2-src/lib/python/OFS/ObjectManager.py, line > > 267, in _setObject > > (Object: ApplicationDefaultPermissions) > > File /root/src/Zope-2.2.2-src/lib/python/AccessControl/Owned.py, line > > 271, in manage_fixupOwnershipAfterAdd > > (Object: Traversable) > > SuperCannotOwn: (see above) > > > > Well I Will Be Waiting your Answer thanks For Your Help > > > > Sincerly > > Manuel Alejandro Peña Sànchez > > > > > > ___ > > Zope maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Advanced search in ZCatalog
PrincipiaSearchSource is a method that returns the (for example) text of you object. If you have a class that is being catalogued, as it catalogs it calls each index (be it a method or a property). So you can fiddle with your indexes by fiddling with your methods, such as PrincipiaSearchSource. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Maik Röder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, November 13, 2000 11:39 AM Subject: Re: [Zope] Advanced search in ZCatalog > Hi ! > > [EMAIL PROTECTED] wrote: > > > > Usually, I use an external method returning a string containing the text > > from all the fields I want to search on, and I index THAT field in the > > Catalog. It works great! > > Isn't that what PrincipiaSearchSource is used for ? > > BTW: I know that PrincipiaSearchSource can be an external method, but > maybe someone knows whether it could also be a DTML Method ? > > Regards, > > Maik Röder > > ___ > 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] Form variables with same name as folder names
> 1) the ZSQL manual, http://www.zope.org/Documentation/Guides/ZSQL-HTML/ZSQL.1.4.4.html, says that the first lookup should be variables in HTTP_REQUEST. So why is FOO referring to my folder FOO? Its true it does and I found the exact problem. A chance to lob this bug into the collector. > 2) is there some way I could have referred to the variable FOO in my Z SQL method without resorting to renaming the variable in my form? Rename your folder :) ___ 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] Where to store my data?
I've just started playing with Zope again, and this time I'm going to spend enough time with it to actually decide if it's crazy or I am :) My project currently consists of a bunch of community "modules" written in PHP using MySQL as a data store. Each modules PHP code produces an XML page, by running a bunch of queries in the database, and performing some logic. These XML pages are then processed using XSLT, with a model very similar to Acquisition. I'm getting very tired of the poor language design inherent in PHP, and wanted to start using Python again. (Big reason for doing this work: In the current package, each module is only accessible from a hardcoded URL, such as /links for the Links module, etc. Many of my customers want to change the layout of their site, and in fact maybe have two Links modules, etc.) So far, sounds like Zope would be a great system for me. It would give my customers a good platform to customize their sites, and give me a good platform to build my modules with. Now, short of just doing it and then discovering what I did wrong, I'm hoping to get some advice from the Zope community on how to structure this system. This is a fairly large system, I host about 10 customers per box, serving about 4MM page views. 99% of the pages are dynamic, doing real-time database queries. Some of my first questions: -Is Zope a good choice for this kind of project? -Which is better: Store my content (Forum posts, Links, etc) in ZODB, or a MySQL database? -Build my Product (right term?) in DTML/ZClasses (seems easier for my users to customize?) or build it in Python? -Can I (easily) build this system in 4 layers: Content -- actual low-level storage, rarely customized Logic/Object Representation -- layer used to interact with the content, also rarely customized, although does have configuration options XML (page contents) -- every URL should result in an XML document, containing all the information that will be presented on that page. Written in DTML? XSLT (page rendering) -- the XML documents must be transformed into HTML/etc. These transformations, like the page contents should be inherited; excuse me, acquired. -Simple things should be simple, Complex things should be possible. -- My users should be able to plop a Links module into their site, edit the Properties for that Object, and it works. If they want to change the way Links are categorized, they should be able to, although it'll take a while longer :) Thanks for your Zen, -Randy
Re: [Zope] help
Andy McKay wrote: > BTW: Im not a Unix guru but I dont think having everythin 777 is the most > secure way of maintaining your installation... > > -- > Andy McKay, Developer. > ActiveState. Hi Andy, actually, if you are talking about permissions, this setting gives anyone in the world read write and execution access to your document(s)/directory(ies). I think you want to set permissions as 755, with owner and group set to nobody (at least for the /opt/zope directory and sub-directories. (allows only owner write access) : ) ciao! greg. ___ 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] Calling obj. in index_html
Hi Andy, Sorry to question you, but from what I understand is "Bad Andy" Should be Seems he wants to call the object and not the string right? I'm just testing if I learned anything about Zopemantics yet. -Jimbo ___ 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: Advanced search in ZCatalog (Micha)
Hi, I played with ZCatalog and ZClasses a time ago. Due to the fact that ZCatalog can Index all Objects - You Can Index a Method, .!!! This Methods can be External-, Phython-, or DTML-Methods. But they have to return something to the catalog (DTML-RETURN Tag). You can give this method a name like "PrincipiaSearchSource" or what the hell you think of. In my case I index about 10 different ZClass, 100 Instances of them, with a PythonMethod called text_inhalt (text_contents) Param: self Code return string.join((self.id, self.inhalt), '; ') Or in an subclass return string.join((self.id, self.teaser, self.gericht, self.keys, self.art, self.norm, self.parteien), '; ') Be warned you can use a DTML Method and return something with the dtml-return tag, but this is not working very well within a ZCLass, !!! ?? P.S.: If you want to call a resultObject (e.g. a ZClass) directly through Zope/DTML/Python use the PyMethod "fetchObj" much cooler than only via catalog.getpath (which is link /hfg/kkjk/) to do somthing like this: Result from a canned search convert /parent/child to an real object parent.child *** points to a ZClass [Base:Renderable] calling the Object/Class directly, which renders itself use something like this: Python Method: fetchObj Param: _,fetchStr, attr=None obj = _ for p in string.split(fetchStr, '/'): obj = obj[p] if attr is None: return obj else: return render(_.getattr(obj, attr)) Greetings from Heidelberg Michael Kobald ___ 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] SSL and relative links (URLs)
Hello all, I am running Zope 2.2.2 and accessing it through Apache & FastCGI. I want to access some of the content through SSL and some without. What I have done is set up 2 FastCgiExternalServer directives in Apache. One in the non-SSL area (/non-SSL/dir/zope) and one in the SSL enabled area (/SSL/dir/zope_ssl). BTW, this is the only way I have figured out to be able to serve zope content through both SSL and non-SSL enabled delivery on a single zope server. The obvious problem here is that content meant for SSL can be accessed through non-SSL and vice-versa. If anyone has come up better solution, please let me know. My real problem is that when I call a zope object relatively (ex- href="zope_object" instead of href="zope_object.absolute_url()" or href="https://bla.com/zope/zope_object"), the protocol is displayed as http instead of https. I had this problem with absolute_url() until I installed SSLAbsoluteURL (shameless SSLAbsoluteURL plug). Is there anyway to remedy this situation with relative links? Thanks, Dustin ___ 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] Calling obj. in index_html
I had to catch myself. expr="Bad Jimbo" I guess calling it versus inserting it achieves the same results. Just to clarify this would render a string "_['ftp']" right? -Jimbo ___ 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] Monkeying with the Zope database
I've been toying with the Zope database and I'm probably alomst to the point where I know enough to be dangerous. I am trying to make a few changes to the stuff in the Zope database without actually running Zope. Here's what I'm tring to do: 1 - Create a new user in the top level acl_users folder 2 - import a file "login.zexp" into the top level folder (login.zexp has been copied to the import directory) Here's some code I've written: -- import sys sys.path.insert(0, '/home/zope/lib/python') import Zope appRoot = Zope.DB.open().root()['Application'] # create a new user appRoot['acl_users']._doAddUser(name='ThisWebSiteIsMine-SoThere', password='pw', roles=['Manager'], domains=[]) get_transaction().commit() # login as that user owner = appRoot['acl_users'].getUserById('ThisWebSiteIsMine-SoThere') Zope.AccessControl.SecurityManagement.newSecurityManager(None, owner) # import login.zexp and take ownership appRoot.manage_importObject('login.zexp', set_owner=1) get_transaction().commit() -- Here's the resulting traceback: -- Traceback (innermost last): File "go.py", line 22, in ? appRoot.manage_importObject('login.zexp', set_owner=1) File "/home/zope/lib/python/OFS/ObjectManager.py", line 526, in manage_importObject self._setObject(id, ob, set_owner=set_owner) File "/home/zope/lib/python/OFS/ObjectManager.py", line 267, in _setObject object.manage_fixupOwnershipAfterAdd() File "/home/zope/lib/python/AccessControl/Owned.py", line 273, in manage_fixupOwnershipAfterAdd self.changeOwnership(user) File "/home/zope/lib/python/AccessControl/Owned.py", line 166, in changeOwnership new=ownerInfo(user) File "/home/zope/lib/python/AccessControl/Owned.py", line 297, in ownerInfo db=user.aq_inner.aq_parent AttributeError: aq_inner -- It appears to be dying while trying to set the ownership. There's a good chance that I'm going about this all the wrong way (I'm new at this stuff). Any help to fix up what I've tryed or new ways to approach the problem will be appreciated. Thanks, Steve ___ 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] Calling obj. in index_html
In the wonderful world of DTML etc... all work for folders. I know is different from . But whilst its always been summarised that one "is python" and one "isnt", the exact difference I couldn't tell you without hunting through the DT source. Both and both render the string of foo, its just that the latter doesnt parse the resulting html, but things are different for compared to . Maybe someone more expert than me would like to jump in... -- Andy McKay, Developer. ActiveState. - Original Message - From: "jimbo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 13, 2000 1:30 PM Subject: [Zope] Calling obj. in index_html > I had to catch myself. expr="Bad Jimbo" > I guess calling it versus inserting it achieves the same results. > Just to clarify this would render a string "_['ftp']" right? > -Jimbo > > > ___ > 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] Where to store my data?
Some of my first questions: -Is Zope a good choice for this kind of project? Yes. -Which is better: Store my content (Forum posts, Links, etc) in ZODB, or a MySQL database? Depends. I prefer to put put large (in size or number) or frequently changed content in SQL and small static content in Zope. -Build my Product (right term?) in DTML/ZClasses (seems easier for my users to customize?) or build it in Python? Python. I would say its going to be pretty hard for a standard customer to change a Product and break your site. Your product should be configurable. -Can I (easily) build this system in 4 layers: Content-- actual low-level storage, rarely customized SQL Logic/Object Representation-- layer used to interact with the content, also rarely customized, although does have configuration options ZSQLMethods XML (page contents)-- every URL should result in an XML document, containing all the information that will be presented on that page. Written in DTML? XMLDocument. XSLT (page rendering)-- the XML documents must be transformed into HTML/etc. These transformations, like the page contents should be inherited; excuse me, acquired. XMLDocument. But I would have to say whilst XML is great, rendering it is normally slow. If you already have the document just use DTML and cut out a step. My 2 cents. -- Andy McKay, Developer. ActiveState. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to access column names in DTML Methods
On Tue, 14 Nov 2000, Jose Soares wrote: > Hi all, > > I'm trying to display the column names of a Record object without success. > I'm able to access column data using sequence-item but I don't know > how to display column names. > > Here is some code I use in a production site: do your loop stuff here I only used the dtml-let because I use the list twice... so; blah should work fine (not testsed.) I believe there is some more detail in what exactly is in an SQL return object (try the ZQR :) > > Thanks for any help > José > Have a better one, Curtis Maloney ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Form variables with same name as folder names
On Tue, 14 Nov 2000, "Burwell, Becky wrote: > Hi. I am new to using Zope and just got stuck on the following problem. I > am trying to use forms with an SQL database. > > I have a form with checkboxes and I use variables like FOO to capture the > value. For example: > > The form has a post with the action to call a DTML document. In my DTML > document I call a Z SQL Method called InsertMethod with REQUEST as the > argument, for example InsertMethod(REQUEST). > > My Z SQL Method InsertMethod has arguments including > FOO="" > > And then in the body of the Z SQL method I have: > > >{code to insert into a database table} > > > This working UNTIL I created a Folder named FOO. Then the value of FOO in > the Z SQL method seemed to be the FOO folder and not FOO from REQUEST. My > workaround was to call the variable FOOCHECKBOX. > > > 2) is there some way I could have referred to the variable FOO in my Z SQL > method without resorting to renaming the variable in my form? > A sneaky problem indeed, and once again, one caused by "convenient" shortcuts. (o8 The simple answer: use REQUEST.form['FOO'] to refer to the form variable. The longer answer: To make life simpler on our key-weary fingers, DC made all the form variables part of the namespace, but put then sufficiently down the search path so they wouldn't get in the way of other objects. Most of the time this is just great, but occasionaly you do run into this problem. So, you can explicitly access all form variables with REQUEST.form[]... just as you can access all cookies via REQUEST.cookies[] I would advise you make a small DTML Document containing just to have a look at what it contains THEN go and check up the ZQR for all the members of REQUEST... and RESPONSE, while you're at it.. (o8 > Thanks! > > *becky* > Have a better one, Curtis Maloney ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] help
On Tue, 14 Nov 2000, Gregory Haley wrote: > Andy McKay wrote: > > BTW: Im not a Unix guru but I dont think having everythin 777 is the most > > secure way of maintaining your installation... > > > > -- > > Andy McKay, Developer. > > ActiveState. > > Hi Andy, actually, if you are talking about permissions, this setting gives > anyone in the world read write and execution access to your > document(s)/directory(ies). I think you want to set permissions as 755, > with owner and group set to nobody (at least for the /opt/zope directory > and sub-directories. (allows only owner write access) : ) > Yes, I know we've wandered somewhat off topic, but hey... just this once.. (o8 Greg, Having all your dtml, html, py, pyc, doc and other files executable just doesn't make sense! In fact, if you make everything 440 except for in /var, where you make it 640, and owned by a "zope" user, this is the safest. Of course, it DOES mean you have to explicitly chmod any file you want to edit...so if you're not THAT paranoid, you could use 640 everywhere... If you put all the files in a zope group, then you can set the permissions 660, so only people in the Zope group can edit the files. > ciao! > greg. > Have a better one, Curtis Maloney. P.S. sorry for rambling... i've just got into work, and not had my first coffee yet.. (o8 ___ 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 Andy, actually, if you are talking about permissions, this setting gives > anyone in the world read write and execution access to your > document(s)/directory(ies). I think you want to set permissions as 755, with > owner and group set to nobody (at least for the /opt/zope directory and > sub-directories. (allows only owner write access) : ) Thats what I thought ugghhh... ___ 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 declining?
>From: "Jason C. Leach" <[EMAIL PROTECTED]> >2. Many of the people are now way past the general skill level in this >list and have lost interest. >3. Alt. sources of info like: irc.zope.net #Zope > >It's obvious when you see companies like www.cbsnewyork.com runing zope >that it is gaining in market penetration. This site definitely is re-assuring. :) Thanks for the good news. I am nowadays more in the Javaland than Pythonland. Haven't tried irc in these years. It used to be that if newsgroups were cocaine, irc would be morphine, so I avoided it completely. :) regards, Hung Jung _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Where to store my data?
Randall, As to the use of xml/xsl. I'm in the process of creating a product called (originality abounds) nXMLDocument. This is a XML doc that can render itself based on a XSL stylesheet. At the moment it uses the Microsoft XSLT parser on Win32, but changing it to use another parser/os shouldn't be difficult at all. It works right now, the XML and the XSL can be built using DTML calls as well, so building XML from a database is very simple indeed, and using DTML in the XSL is just as useful. I'm looking for some alpha testers if your interested. Phil [EMAIL PROTECTED] - Original Message - From: Randall Kern To: [EMAIL PROTECTED] Sent: Monday, November 13, 2000 8:00 PM Subject: [Zope] Where to store my data? I've just started playing with Zope again, and this time I'm going to spend enough time with it to actually decide if it's crazy or I am :) My project currently consists of a bunch of community "modules" written in PHP using MySQL as a data store. Each modules PHP code produces an XML page, by running a bunch of queries in the database, and performing some logic. These XML pages are then processed using XSLT, with a model very similar to Acquisition. I'm getting very tired of the poor language design inherent in PHP, and wanted to start using Python again. (Big reason for doing this work: In the current package, each module is only accessible from a hardcoded URL, such as /links for the Links module, etc. Many of my customers want to change the layout of their site, and in fact maybe have two Links modules, etc.) So far, sounds like Zope would be a great system for me. It would give my customers a good platform to customize their sites, and give me a good platform to build my modules with. Now, short of just doing it and then discovering what I did wrong, I'm hoping to get some advice from the Zope community on how to structure this system. This is a fairly large system, I host about 10 customers per box, serving about 4MM page views. 99% of the pages are dynamic, doing real-time database queries. Some of my first questions: -Is Zope a good choice for this kind of project? -Which is better: Store my content (Forum posts, Links, etc) in ZODB, or a MySQL database? -Build my Product (right term?) in DTML/ZClasses (seems easier for my users to customize?) or build it in Python? -Can I (easily) build this system in 4 layers: Content-- actual low-level storage, rarely customized Logic/Object Representation-- layer used to interact with the content, also rarely customized, although does have configuration options XML (page contents)-- every URL should result in an XML document, containing all the information that will be presented on that page. Written in DTML? XSLT (page rendering)-- the XML documents must be transformed into HTML/etc. These transformations, like the page contents should be inherited; excuse me, acquired. -Simple things should be simple, Complex things should be possible. -- My users should be able to plop a Links module into their site, edit the Properties for that Object, and it works. If they want to change the way Links are categorized, they should be able to, although it'll take a while longer :) Thanks for your Zen, -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 )
[Zope] Re: can multiple users access gadfly database simultaneously ?
jacintha menezes writes: > When two users enter their login name & password and press enter > simultaniously,the first who entered among the two gets the following error. > > Error Type: SyntaxError > Error Value: unexpected token sequence.near :: 'of_que\012from noq'*'' > *** current state = 277 expects: '*', ';', ')', > 'ORDER', ('nomatch1',) current token = ((-6, 'FROM'), 'FROM') That looks as if Gadfly would not be thread safe. More precisely, as if the parser state got mangled by concurrent thread activity. When I looked at the code of ZGadflyDA (some years ago), I thought that the Gadfly database adapter would set a global lock and therefore behave like a monitor. In such a case, such behaviour should not be observable. Maybe, I was mislead or something changed meanwhile. > waiting for your immediate reply. ^ I am in doubt whether I shall get angry. I won't -- yet. But please keep in mind, that neither me nor the list has any obligations towards you. 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] How to maintain an up-to-date mirror site in Zope? (not-so-newbiequestion!) question!)
Here is the situation, can you offer advice? Machine A is running a Zope server for a wide-area network in Company A. This is an Intranet site which changes regularly. Machine B serves a separate wide-area network in Company B, and Company B employees need access to Company A's intranet. The link between Machine A and Machine B is too slow/low-bandwidth for all of company B's employees to access A's intranet directly. Therefore we want to have a Zope server on Machine B with a mirror copy of the Company A intranet. The problem is, how can we keep this mirror copy updated on a daily basis? Ideally we need an automatic process to run each night and update the mirror on B. The ideas I had were : 1) stop B's Zope server, copy across data.fs and restart B. But can this be done automatically? 2) somehow keep a log of changes made in A, and at the end of day, export the changed files, import them on B, overwriting the originals. Can this be done in Zope code? Can this be automated? Does anyone have any thoughts/opinions on these ideas? Or does anyone know of a better way, perhaps an existing Zope package or solution? Thanks again, Alex == Alex Bowyer IT Contractor, Logica Australasia Tel: +61 2 9202 8130 Fax: +61 2 9922 7466 E-mail : [EMAIL PROTECTED] WWW: http://www.logica.com.au/ == ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to maintain an up-to-date mirror site in Zope? (not-so-newbie question!) question!)
Have a look at the excellent Client_Server product. It allows you to export chunks of objects from one to another. http://www.zope.org/Members/MacGregor/Client_Server Then: - write a script that each evening - gets a list of every object in the data.fs and its bobobase_modification_time - runs export on each of those objects from A - B. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Bowyer, Alex" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 13, 2000 4:00 PM Subject: [Zope] How to maintain an up-to-date mirror site in Zope? (not-so-newbie question!) question!) > Here is the situation, can you offer advice? > > Machine A is running a Zope server for a wide-area network in Company A. > This is an Intranet site which changes regularly. > Machine B serves a separate wide-area network in Company B, and Company B > employees need access to Company A's intranet. > The link between Machine A and Machine B is too slow/low-bandwidth for all > of company B's employees to access A's intranet directly. > Therefore we want to have a Zope server on Machine B with a mirror copy of > the Company A intranet. > The problem is, how can we keep this mirror copy updated on a daily basis? > > Ideally we need an automatic process to run each night and update the mirror > on B. > > The ideas I had were : > > 1) stop B's Zope server, copy across data.fs and restart B. But can this be > done automatically? > > 2) somehow keep a log of changes made in A, and at the end of day, export > the changed files, import them on B, overwriting the originals. Can this be > done in Zope code? Can this be automated? > > Does anyone have any thoughts/opinions on these ideas? Or does anyone know > of a better way, perhaps an existing Zope package or solution? > > Thanks again, > > Alex > > == > Alex Bowyer > IT Contractor, Logica Australasia > Tel: +61 2 9202 8130 > Fax: +61 2 9922 7466 > E-mail : [EMAIL PROTECTED] > WWW: http://www.logica.com.au/ > == > > ___ > 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] opinions please
hello, i am searching for opinions on a project i am considering. the project is to create a product or script to allow users to email documents into Zope as attachments. then the documents are to be placed in the proper folder according to information in the subject line of the email they rode in on. what i would like to know is, is this possible? if it is, how hard will this be to implement? the other idea was to create a client app where users can drop the document onto a desktop icon and the app uses webDAV to put it into Zope. would this be easier or harder? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to maintain an up-to-date mirror site in Zope? (not-so-newbiequestion!) question!)
Hi Alex, If the changes that are made are always 'one-way' you could rsync Data.fs, or you could 'export' certain folders that could then be 'imported' at the mirror site. These could both be automated pretty easily. As you noted, if you take the rsync route you'll need to shut down and restart Zope. If you do the export/import you can leave Zope running (though you may want to pack the DB afterwards.) Another nice feature of export/import is that you can have some parts of the site that are managed at company B and other parts managed by company A. An even better approach might be some kind of ZEO solution.. but I don't know anything about ZEO other than the name. ;-) -steve > "Bowyer," == Bowyer, Alex <[EMAIL PROTECTED]> writes: Bowyer,> Here is the situation, can you offer advice? Bowyer,> Machine A is running a Zope server for a wide-area Bowyer,> network in Company A. This is an Intranet site which Bowyer,> changes regularly. Machine B serves a separate wide-area Bowyer,> network in Company B, and Company B employees need access Bowyer,> to Company A's intranet. The link between Machine A and Bowyer,> Machine B is too slow/low-bandwidth for all of company Bowyer,> B's employees to access A's intranet directly. Therefore Bowyer,> we want to have a Zope server on Machine B with a mirror Bowyer,> copy of the Company A intranet. The problem is, how can Bowyer,> we keep this mirror copy updated on a daily basis? Bowyer,> Ideally we need an automatic process to run each night Bowyer,> and update the mirror on B. Bowyer,> The ideas I had were : Bowyer,> 1) stop B's Zope server, copy across data.fs and restart Bowyer,> B. But can this be done automatically? Bowyer,> 2) somehow keep a log of changes made in A, and at the Bowyer,> end of day, export the changed files, import them on B, Bowyer,> overwriting the originals. Can this be done in Zope code? Bowyer,> Can this be automated? Bowyer,> Does anyone have any thoughts/opinions on these ideas? Or Bowyer,> does anyone know of a better way, perhaps an existing Bowyer,> Zope package or solution? Bowyer,> Thanks again, Bowyer,> Alex Bowyer,> == Alex Bowyer IT Bowyer,> Contractor, Logica Australasia Tel : +61 2 9202 8130 Fax Bowyer,> : +61 2 9922 7466 E-mail : [EMAIL PROTECTED] WWW : Bowyer,> http://www.logica.com.au/ Bowyer,> == Bowyer,> ___ Zope Bowyer,> maillist - [EMAIL PROTECTED] Bowyer,> http://lists.zope.org/mailman/listinfo/zope ** No cross Bowyer,> posts or HTML encoding! ** (Related lists - Bowyer,> http://lists.zope.org/mailman/listinfo/zope-announce Bowyer,> 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] Form variables with same name as folder names
>On Tue, 14 Nov 2000, "Burwell, Becky wrote: >> This working UNTIL I created a Folder named FOO. Then the >value of FOO in >> the Z SQL method seemed to be the FOO folder and not FOO >from REQUEST. My >> workaround was to call the variable FOOCHECKBOX. >> >> >> 2) is there some way I could have referred to the variable >FOO in my Z SQL >> method without resorting to renaming the variable in my form? >> > >A sneaky problem indeed, and once again, one caused by "convenient" >shortcuts. (o8 > >The simple answer: use REQUEST.form['FOO'] to refer to the >form variable. I just did an experiment and if I do the following my SQL Method: this is never true. If I do: or I get name errors with REQUEST being unknown. The REQUEST.form thing works in the DTML document that calls the SQL method but not in the SQL method itself. *becky* ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to maintain an up-to-date mirror site in Zope? (not-so-newbie question!) question!)
Thats another more efficient option, and if you are on Unix you only have stop the Zope you are syncing to. -- Andy McKay, Developer. ActiveState. - Original Message - From: "Steve Spicklemire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, November 13, 2000 4:48 PM Subject: Re: [Zope] How to maintain an up-to-date mirror site in Zope? (not-so-newbie question!) question!) > > Hi Alex, > >If the changes that are made are always 'one-way' you could rsync > Data.fs, or you could 'export' certain folders that could then be > 'imported' at the mirror site. These could both be automated pretty > easily. As you noted, if you take the rsync route you'll need to shut > down and restart Zope. If you do the export/import you can leave Zope > running (though you may want to pack the DB afterwards.) Another nice > feature of export/import is that you can have some parts of the site > that are managed at company B and other parts managed by company A. An > even better approach might be some kind of ZEO solution.. but I don't > know anything about ZEO other than the name. ;-) > > -steve > > > "Bowyer," == Bowyer, Alex <[EMAIL PROTECTED]> writes: > > Bowyer,> Here is the situation, can you offer advice? > > Bowyer,> Machine A is running a Zope server for a wide-area > Bowyer,> network in Company A. This is an Intranet site which > Bowyer,> changes regularly. Machine B serves a separate wide-area > Bowyer,> network in Company B, and Company B employees need access > Bowyer,> to Company A's intranet. The link between Machine A and > Bowyer,> Machine B is too slow/low-bandwidth for all of company > Bowyer,> B's employees to access A's intranet directly. Therefore > Bowyer,> we want to have a Zope server on Machine B with a mirror > Bowyer,> copy of the Company A intranet. The problem is, how can > Bowyer,> we keep this mirror copy updated on a daily basis? > > Bowyer,> Ideally we need an automatic process to run each night > Bowyer,> and update the mirror on B. > > Bowyer,> The ideas I had were : > > Bowyer,> 1) stop B's Zope server, copy across data.fs and restart > Bowyer,> B. But can this be done automatically? > > Bowyer,> 2) somehow keep a log of changes made in A, and at the > Bowyer,> end of day, export the changed files, import them on B, > Bowyer,> overwriting the originals. Can this be done in Zope code? > Bowyer,> Can this be automated? > > Bowyer,> Does anyone have any thoughts/opinions on these ideas? Or > Bowyer,> does anyone know of a better way, perhaps an existing > Bowyer,> Zope package or solution? > > Bowyer,> Thanks again, > > Bowyer,> Alex > > Bowyer,> == Alex Bowyer IT > Bowyer,> Contractor, Logica Australasia Tel : +61 2 9202 8130 Fax > Bowyer,> : +61 2 9922 7466 E-mail : [EMAIL PROTECTED] WWW : > Bowyer,> http://www.logica.com.au/ > Bowyer,> == > > Bowyer,> ___ Zope > Bowyer,> maillist - [EMAIL PROTECTED] > Bowyer,> http://lists.zope.org/mailman/listinfo/zope ** No cross > Bowyer,> posts or HTML encoding! ** (Related lists - > Bowyer,> http://lists.zope.org/mailman/listinfo/zope-announce > Bowyer,> http://lists.zope.org/mailman/listinfo/zope-dev ) > > < > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] FYI: Digital Creations secures $12M round of investment
Hello Zope friends. At long last we at Digital Creations are able to publicly say it: we've closed a $12M round of investment: http://www.digicool.com/News/CRound.html It's out on the newswire now. We'll start pushing it out more over the next 24 hours. This, needless to say, is a big deal, one that we've worked on really, really hard this year. With the tech market downturn since March, and with Open Source particularly getting a beating, it's vindicating to get good funding from strong partners. When everyone else was getting wads of cash during the go-go times, we were quietly at work, being frugal, making money, making a business case, and being profitable. We're proud to say that we got our money when money was hard to find. Let's put it this way: Open Source business is hardly dead. It's just different, and better. What will this mean? First and foremost, Zope and Digital Creations will become very competitive, very quickly, along a number of axes. As the PythonLabs move indicated, we are taking aggressive steps to become a dramatic force in the worlds of content management, web application services, and Open Source leadership. With this round, our business model has been validated. As a member of the Zope community, I view this as "the dream delivered". Many of us care deeply about this thing we're involved in, and sometimes it feels like a longshot. Though this is still a David vs. Goliath, David now has a slingshot, and a bit of steel in his eye. Thanks go to the folks here at DC, to the Zope and Python communities, and to the companies around the world that are basing their business on Zope. Onward! --Paul ___ 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] can multiple users access gadfly database simultaneously ?
Hi, Thanks for your response.I am sorry for the way of my writing. Sincerely to tell you ,by the word 'immediately' i meant request & not command.Anyhow hope you have forgiven me. May i know ,is there any way to solve my problem ?. Should i create a work space or should i lock the page(till one person completes).Are there any dtml tags tags for these purposes or we have to write o python module ?. Thanks, Bye, 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] opinions please
The ZMailIn product may be of interest. -Simon ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] requests for some dtml tags
On Mon, 13 Nov 2000, jacintha menezes wrote: >Is there any dtml tags for creating a new work space also for locking > some page.Locking some page in the sense for second user the operations in > that page should not be processed > unless the process for first user is completed.If there dtml tags for these > kindly give me > those tags. Read some docs about Sessions and Versions. As usual, what can be done via management interface, can be done programatically too. [EMAIL PROTECTED] /--\ | `long long long' is too long for GCC | \--/ ___ 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] FYI: Digital Creations secures $12M round of investment
Let me be among the first to say, "Congratulations." I know you guys have worked for this, and I'm glad to see it came through. --Jeff ___ 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] LDAP variable problem
At 08:09 14.11.2000 +1100, you wrote: >Have you had a look at what the filter method returns when you press use >"Test" tab? The test (uid=*) shows me all the data from the LDAP server. If in the dtml-method, I insert (where searchPerson is my LDAP filter), following data is shown: [, , , .. So, the connection to the LDAP server is ok, and the LDAP-filter finds some data. >You may find some clues there in the data that it returns (if you have got >your LDAP search filter typed in correctly...) hmmm? Marc Ludwig Luxembourg > - Michael >Melbourne, Australia > > At 09:32 AM 13/11/2000 +0100, you wrote: >>Hi. >> >>I was inserting the "missing= " statement into the key. >>In fact, I don't get the key error anymore. But unfortunately, I don't >>get the values of the sn attribute either. >>The method just returns me an empty line for every LDAP entry. >>How can I access the LDAP attributes? >> >>any ideas? >> >>Thanks a lot. >> >>Marc Ludwig >>Luxembourg >> >> >>At 14:29 12.11.2000 +1100, you wrote: >>>Hi Zopistas, >>> >>>Firstly, a big thank you to all thos epeople who helped me with KeyError >>>problem when accessing LDAP entries. >>>Just so the solution makes it onto the mailing list archive (for the >>>next bunny who has the same problem) the solution was to add the >>>following to each of your variables >>> >>>missing= >>> >>>...so that when Zope came across entries without that attribute it >>>didn't barf. >>> >>>I now have one last problem. I can now access all entries from the LDAP >>>directory using the notation - all except >>>one - the "title" attibute . >>> >>>I am guessing that it is because Zope uses "title" to reference the >>>title of the object in the zope database, and therefore won't let you >>>get at the ldap variable using the normal: >>> notation. >>> >>>Is there any way I can pinpoint the LDAP variable instead of the object >>>title in zope? I have no control over the ldap server and attributes >>>name, so I can't change it at that end. >>> >>>When I test the LDAP filter method I can see the variable (it lists all >>>of the attributes of the LDAP record), but I can't reference it in DTML. >>>My filter method is called 'Academics' and just extracts a list of >>>academics in the biology department here at Monash University. I'm sure >>>there must be a way using python notation, but not being a python expert >>>(yet!), I could do with a few clues... >>> >>> >>>Any ideas? >>> >>>Thanks again... >>> >>> - Michael ___ 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 error on first load of zope page
The first page I try and load after restarting the zserver invariably contains the following error. It always occurs *after* the page has successfully been rendered (I have added debugging so that I can see the path traversal, and SQL statements executed). Hitting reload will then display the page properly, and I won't see the error again until i restart the server. (The actual text from the html source is 'Cannot pickle objects') It seems perfectly reasonable to me that you can't pickle a module, but what I'm having trouble understanding is why zope is trying to. Can anyone suggest a way that I could try and track down why this is happening? thanks, toby. === Zope has encountered an error while publishing this resource. Error Type: UnpickleableError Error Value: Cannot pickle objects ... Traceback (innermost last): File /export/home/toby/zope/Zope2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /export/home/toby/zope/Zope2/lib/python/ZPublisher/Publish.py, line 187, in publish File /export/home/toby/zope/Zope2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: proj) File /export/home/toby/zope/Zope2/lib/python/ZPublisher/Publish.py, line 175, in publish File /export/home/toby/zope/Zope2/lib/python/Zope/__init__.py, line 235, in commit File /export/home/toby/zope/Zope2/lib/python/ZODB/Transaction.py, line 251, in commit File /export/home/toby/zope/Zope2/lib/python/ZODB/Connection.py, line 349, in commit (Info: (('Products.ExternalMethod.ExternalMethod', 'ExternalMethod'), '\000\000\000\000\000\000\032 ', '')) UnpickleableError: (see above) -- [ Toby Sargeant : Inpharmatica : Developer : [EMAIL PROTECTED] ] [ http://www.inpharmatica.co.uk : 020 7631 4644 fax 020 7631 4844 ] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [Zope-dev] strange error on first load of zope page
[Toby Sargeant] | It seems perfectly reasonable to me that you can't pickle a module, but what | I'm having trouble understanding is why zope is trying to. Can anyone suggest | a way that I could try and track down why this is happening? My guess is that you've got a packaged module, in the same directory as your external method. I.e., if your external module does an 'import somemodule', and you've got a 'module.py'-file and a 'module'-directory, you'll get this error.. (because python loads package-like modules first). HTH. -Morten ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Where to store my data?
Randall, You're crazy (or rather, you will be by the end of it...) Seriously though, I've spent 3 months developing a site using Zope, and just now is it starting to feel a bit more natural to use. Probably not knowing Python was a handicap. I chose the RDBMS approach to store posts, etc as I was familiar with SQL. I still don't think you can beat the search capabilities of a properly designed database, and Zope does make SQL integration straightforward. Zope has all the right characteristics for what you want to do, but it may send you 'round the twist making it happen! Good luck! Steve - Original Message - From: Randall Kern To: [EMAIL PROTECTED] Sent: Tuesday, November 14, 2000 7:00 AM Subject: [Zope] Where to store my data? I've just started playing with Zope again, and this time I'm going to spend enough time with it to actually decide if it's crazy or I am :) My project currently consists of a bunch of community "modules" written in PHP using MySQL as a data store. Each modules PHP code produces an XML page, by running a bunch of queries in the database, and performing some logic. These XML pages are then processed using XSLT, with a model very similar to Acquisition. I'm getting very tired of the poor language design inherent in PHP, and wanted to start using Python again. (Big reason for doing this work: In the current package, each module is only accessible from a hardcoded URL, such as /links for the Links module, etc. Many of my customers want to change the layout of their site, and in fact maybe have two Links modules, etc.) So far, sounds like Zope would be a great system for me. It would give my customers a good platform to customize their sites, and give me a good platform to build my modules with. Now, short of just doing it and then discovering what I did wrong, I'm hoping to get some advice from the Zope community on how to structure this system. This is a fairly large system, I host about 10 customers per box, serving about 4MM page views. 99% of the pages are dynamic, doing real-time database queries. Some of my first questions: -Is Zope a good choice for this kind of project? -Which is better: Store my content (Forum posts, Links, etc) in ZODB, or a MySQL database? -Build my Product (right term?) in DTML/ZClasses (seems easier for my users to customize?) or build it in Python? -Can I (easily) build this system in 4 layers: Content -- actual low-level storage, rarely customized Logic/Object Representation -- layer used to interact with the content, also rarely customized, although does have configuration options XML (page contents) -- every URL should result in an XML document, containing all the information that will be presented on that page. Written in DTML? XSLT (page rendering) -- the XML documents must be transformed into HTML/etc. These transformations, like the page contents should be inherited; excuse me, acquired. -Simple things should be simple, Complex things should be possible. -- My users should be able to plop a Links module into their site, edit the Properties for that Object, and it works. If they want to change the way Links are categorized, they should be able to, although it'll take a while longer :) Thanks for your Zen, -Randy