[Zope-dev] RE Skinscipt
I think Somebody is working on a short Skinscript tutorial. Hitz N Bitz member http://www.tacomaplace.com http://bbs.tacomaplace.com Get your Free E-mail at http://tacoma.zzn.comGet your own Web-Based E-mail Service at http://www.zzn.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] RE Skinscipt
I think Somebody is working on a short Skinscript tutorial. Get your Free E-mail at http://tacoma.zzn.com Get your own Web-Based E-mail Service at http://www.zzn.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Render DTML without having it in a Zope object
Hello everyone, I have some HTML/DTML saved in the database and I want to now display it. But before I display, I need to render the DTML that is contained in the text. Can anyone lead my in the right direction; maybe by telling me which file handles the rendering and I can read some source code. But of course, it would be cool, if I could get a more explained response. BTW, I can call the method to render the text from Python or DTML. I really don't care. Thanks in advance!!! Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development Technical Project Management ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Render DTML without having it in a Zope object
I have some HTML/DTML saved in the database and I want to now display it. What database - something different then data.fs probably? But before I display, I need to render the DTML that is contained in the text. Can anyone lead my in the right direction; maybe by telling me which file handles the rendering and I can read some source code. But of course, it would be cool, if I could get a more explained response. BTW, I can call the method to render the text from Python or DTML. I really don't care. You'd have to feed it to zopehome/lib/python/DocumentTemplate/DT_HTML.py and use the String method, probably. It is not completely clear to me what you try to do. Is it indirect dtml calling - this could be difficult (your best bet would be to use an external method methinks). If not, why can't you include it like any normal DTML Method? HTH (if only slightly) Rik ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Render DTML without having it in a Zope object
You'd have to feed it to zopehome/lib/python/DocumentTemplate/DT_HTML.py and use the String method, probably. It is not completely clear to me what you try to do. Is it indirect dtml calling - this could be difficult (your best bet would be to use an external method methinks). If not, why can't you include it like any normal DTML Method? How are you Rik, Yeah, I will try the method in DT_HTML.py. Well I am writing an online testing tool where the professor can enter some question for some numerical problem. They are able to refer to a couple of variables when writing the questions which are saved in a DB. Since I wrote my own Python Products, it should be no problem to implement the appropriate methods in my code. Thanks for your help. Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development Technical Project Management ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] SkinScript, and family
Hi Bill, I doubt that skinscript is going to help with 'potentially complicated calculations'. Skin Script works with ZPatterns (Specifically DataSkins) to provide control over how attributes of DataSkins are gotten, and stored. They are normally pretty simple "if THIS then THAT" kinds of things (basically a set of one line expressions that handle substitutions that occur under various circumstances... ). It would be a lot easier to answer your question if you could elaborate a bit on the 'get me what I want' part of your query. ;-) The best documentation I've seen yet is an email from pje about the current implementation: http://lists.zope.org/pipermail/zope-dev/2000-July/006201.html Hope that helps... -steve "Bill" == Bill Anderson [EMAIL PROTECTED] writes: Bill OK, I have some potentially complicated calculations to Bill build on a Ticket Tracking system I've built here. I can do Bill it in python mehtods, but am wondering if skinscript will Bill get me what i want as well. If anyone has done dome stuff in Bill skinscript they can share I would be ecstatic. I don't Bill necessarily need a tutorial (but would be happy to review Bill and rate one :), as I can learn fairly well from examples Bill that have an explanation of what the skinscript Bill accomplishes. Bill TIA, Bill Bill -- Bill Anderson (ARC) Unix/Linux System Administrator HPSO Bill Engineering Productivity Team Thursday, September 07, 2000 Bill Random Quote: Never eat anything bigger than your head. Bill ___ Zope-Dev Bill maillist - [EMAIL PROTECTED] Bill http://lists.zope.org/mailman/listinfo/zope-dev ** No cross Bill posts or HTML encoding! ** (Related lists - Bill http://lists.zope.org/mailman/listinfo/zope-announce Bill http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Render DTML without having it in a Zope object
hi stephan, one project i am working on right now does something similar, retrieving data for business objects out of an RDBMS and rendering it through zope without instantiating e.g. an instance of a product representing the business object. in my case it is handled with external methods (not the external method included with zope, but it'll work either way). you create an external method that accepts whatever parameters you need to call into the database and you return the record(s) out of it. you can do a lot of nifty and simple stuff in the external method to control exactly what is being passed back, what i am doing is creating an empty dictionary in the external method and just add whatever i want on the page into that dictionary. in your page you could then do the following: dtml-call expr="REQUEST.set('result_dict', Path.To.Method(param, param2, ...))" here is value 1: dtml-var name="result_dict['value1']" iterating over a list that is part of the result dictionary: dtml-in name="result_dict['list_component']" dtml-var name="variable_from_list" /dtml-in HTH jens on 9/8/00 1:33, Stephan Richter at [EMAIL PROTECTED] wrote: Hello everyone, I have some HTML/DTML saved in the database and I want to now display it. But before I display, I need to render the DTML that is contained in the text. Can anyone lead my in the right direction; maybe by telling me which file handles the rendering and I can read some source code. But of course, it would be cool, if I could get a more explained response. BTW, I can call the method to render the text from Python or DTML. I really don't care. Thanks in advance!!! Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development Technical Project Management ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] RFC: Zope Security for Developers
Hi all - There was quite a bit of discussion on the "security assertion spelling proposal" on dev.zope.org recently - it has since turned into an active project and I have a draft of the first deliverable (user documentation) ready for review and comment: http://dev.zope.org/Wikis/DevSite/Projects/DeclarativeSecurity/ZopeSecur ityForDevelopers PLEASE take a few minutes to review this - it will become the official documentation for how Python developers use security very soon! Thanks! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] SkinScript, and family
Steve Spicklemire wrote: Hi Bill, I doubt that skinscript is going to help with 'potentially complicated calculations'. After looking, I don't think it wil either. I am building statistics of of a call Tracking System. For example, each ticket has a response time property, and one of the graphs needs average response time. Looks like PythonMehtods is the winner -- Bill Anderson (ARC)Unix/Linux System Administrator HPSO Engineering Productivity Team Friday, September 08, 2000 Random Quote: Is there life before coffee? Yes. Is there life after coffee? Unknown. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] security document comments
Well, I just tried to post several paragraphs to the security interface wiki, and netscape reported a proxy problem. It then ate my posting instead of giving it back to me when I pressed back. So I'm going to try to recreate what I wrote here and hope someone will post it for me or something. (If only w3m supported cookies...) 1) "in an anonymous context" made me think first of anonymous users. I'm really not sure it's a very evocative phrase. It's really about manipulating a reference to the object instance itself rather than calling one of its methods. 2) The doc is great, but I also like 'command reference' type things where you get the complete syntax and semantics for each method. If I can only have one doc, I'll take this one, but I can wish for both grin. 3) Although I've written and worked with python Products (and with python itself for longer), I really don't know what "subobjects where the subobject supports the setting of arbitrary attributes" are. How about an example of one of those? 4) Having read this doc, I now understand how the current security model works much better. I think that indicates that this interface is definately a move in the right direction in terms of making the whole thing more understandable and usable. --RDM ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] NEWBIE HELP can not get Zope to start
On Thu, Sep 07, 2000 at 10:12:16PM -0400, Douglas Eadline wrote: 6. OK, I'll add a user. I go to acl_users and add a user. 7. I quit netscape, and restart and attempt to login as the new user - DOES NOT WORK 8 I check /var/zope/access - no new user added Only the superuser (more accuratly the bootstrap user now) is defined in the access file. All other users are defined in User objects in the Object Database. You will notice that the file var/Data.fs will have grown. 9. I quit netscape and re-login as superuser. I look at the user I added, now the password field has more stars in it than the password I assigned. The confirm field has 1 star less than the password field. For security reasons, the page with the password and confirm fields is not rendered with the original password; you can view the source to see this, the password would have to be sent verbatim in order to do that. In stead, the magic values 'password' and' 'confirm' are used, to indicate that you didn't want to change the user password, only the other fields. One possible explanation for the denial of your login is that you filled something in the domains field, which should only be used if you want to limit the domains a user can login from, and made a mistake there. The format is a _space seperated_ list of domains, each of which can use the '*' wildcard for any part between the dots and can be an ip or a name: 10.0.0.* localhost *.mydomain.com If you did fill in that field, clear it, and try again. Also note that both user id and password are case sensitive. Try a simple username and password first, like 'test' and 'test'. Let us know if you succeed! -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 HELP can not get Zope to start
On Thu, Sep 07, 2000 at 10:12:16PM -0400, Douglas Eadline wrote: 6. OK, I'll add a user. I go to acl_users and add a user. Did you give it the "manager" role? Best regards J Esteves -- jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.org/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] NEWBIE HELP can not get Zope to start
Douglas, You seem to be doing as expected, however a few points to note: see below: - Original Message - From: "Douglas Eadline" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 08, 2000 3:12 AM Subject: [Zope] NEWBIE HELP can not get Zope to start I have tried this 10 times with several versions of Zope and I get the same result - Zope will not let me add a user or log in. Here are my steps: 1. download and install latest RPMS: Zope-2.2.1-1.i386.rpm Zope-zserver-2.2.1-1.i386.rpm 2. Start zope: /etc/rc.d/init.d/zope start 3. login as superuser superuser 123 4. See first Zope Screen 5. Attempt to run the tutorial as described in the Content Managers Guide Zope will not let superuser do this 6. OK, I'll add a user. I go to acl_users and add a user. 7. I quit netscape, and restart and attempt to login as the new user - DOES NOT WORK When you created the user did you give it managment permissions or is it only a 'normal' user? 8 I check /var/zope/access - no new user added The new user doesn't get added to the access only superusers are put in there (I think there has been some talk about having multiple su's tho). The new user is put into the ZODB and accessed from there. 9. I quit netscape and re-login as superuser. I look at the user I added, now the password field has more stars in it than the password I assigned. The confirm field has 1 star less than the password field. This is pure obfuscation, the password fields are set to a value that zope recognises as you saying 'just change the properties associated with this user, but leave the password alone'. I do not get it. Is there something to read that explains how to start Zope and try the tutorial? As above, the only thing I can think of is that you didn't give the new user the correct permissions. Or is this some secret only Zope hackers know? No secrets, we don't have secrets here ;) hth Phil [EMAIL PROTECTED] Doug --- Paralogic, Inc. | PEAK | Voice:+610.814.2800 130 Webster Street| PARALLEL |Fax:+610.814.5844 Bethlehem, PA 18015 USA | PERFORMANCE |http://www.plogic.com --- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help: PATH_INFO==object
On Fri, Sep 08, 2000 at 11:32:39AM +0800, Li Dongfeng wrote: I am writing a service for other pages to use as form action. How can I reference the caller object in DTML/python? I can only think of this: First use PARENTS[-1] to get to the root object of the site. Then split the PATH_INFO containing the caller's path, and go down from the root to every subfolder in PATH_INFO and then get to the caller object. But this is not very elegant. Can anyone give better solution to this? PATH_INFO only tells you something about the service object, not about the calling page. If you use this as a FORM action target, it's the browser that makes the call, not Zope. You can, in many cases, determine the browser URL by looking at HTTP_REFERER, but many people and companies use proxies and firewalls to filter this out nowadays; it is considered sensitive information. If this app is targeted at a intranet or other controlled environment, you could dictate the presence of HTTP_REFERER, and rely on that, otherwise you will have to add a reference as a hidden form field generated by the calling object. Once you have a URL of the calling object, you can use the Traversal interface to turn that URL into an object reference. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Squishdot and _catalog bugs
Roch'e Compaan wrote: I've upgraded our Zope Server to 2.2.1 and upgraded squishdot to 7.1. Whenever I post an article on my squishdot sites I get an attribute error: _catalog. It seems like squishdot has trouble putting the article in the catalog. I did modify all references to thread[0] to getThread(0): Did you hit the 'Update Indexing' button on the 'Options' manage tab? 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 )
[Zope] XML and Zope newbie question...
Hi All, I am just getting started in XML and am trying to figure out how it works with Zope. I would like to be able to post some data to Zope in XML format and have Zope parse the data into Zope objects. Is this possible? It seems like I should be able to create the Zclasses and, when Zope receives the post, have Zope automagically create the necessary objects from my classes. Any input on how to do this or pointers to a better way would be fantastic. Please respond to me directly as I am not currently able to handle the list volume. Thanks, Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Need help with ZJetDA, Winnt4 and Zope 2.2.1
"Farrell, Troy" wrote: As you have no doubt heard my cries for help, I figure that very few are running NT4. More than would admit it, probably. Perhaps no one knows the answer to what seems to be a rather specific situation. For one, I have the impression most people use zodbc connections to access database then use the zjetadapter (so do I, so chances are I might be just blabbering). I am having a permissions difficultie with ZJetDA trying to modify data in an Access97 database. On my server, the DA is able to SELECT * FROM tablename with no problem, but when it comes to INSERT INTO tablename VALUES (...) or UPDATE, I get a Query Error with a value of INVALID OPERATION. I mirror (It is identical, i checked 5+ times) all the objects on my NT4 laptop and it works ok. The databases are Identical, I copied the working one to the non-working server and still no go. The traceback is as follows: hm one stupid question: isn't by accident the working one read-only by accident (this happened to me more than once and it _will_ happen if the access file is not copied properly. Who knows what copying properly is - please speak up). __call__ (Object: bmsdb_jet_select_browse_state_sub_insert_into_temptablebrowse) File C:\PROGRA~1\JESTER\lib\python\Products\ZJetDA\db.py, line 130, in query Query Error: (see above) you could try this with the zodbc adapter. Please make sure you odbc connection is made under the system account though. Rant: I've been working on this for days. I don't seem to understand the security model since I didn't have any problems before 2.2.x. If I cannot get this resolved, I'll move back to the 2.1.x series. I really want this to work as it is my companie's introduction to open source software. Have a :) day. hm is the Zope version the same on your laptop and your server then? If so, then the security thing should be the same on both, right? If not - then how can you say all objects are the same? Did you copy you data.fs database from one machine to the other? success, let us know how it goes 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 )
[Zope] Re: PTK - member can reconfigure portal
Anders Eriksson wrote: I have joined the Portal and when I log in as this member and select 'My Stuff', I get a new menu item: 'Re-configure portal'! Which will let this user/member change things that only the owner/super should be able to do!(?) This could be one of two things, IIUC: 1. You might still be 'logged in' through HTTP Basic Authentication from when you created the portal. Try closing all your browsers, opening up a new one, joining the portal with that one and see if the problem is still there... 2. ...if it is, it's a bug, stick it in the PTK Tracker: http://www.zope.org/Products/PTK/Tracker cheers, Chris PS: This sort of thing is probably better suited to the [EMAIL PROTECTED] mailing list. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Lock and Transaction in Zope.
Zope has no built in locking like that, but IIRC there was some hack in the wiki code to prevent simultaneous editing (which wasn't bullet proof). Perhaps you can look there. I doubt whether it will solve the problem you pose, but I don't see why you'd want to do what you pointed out in your mail anyway. 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] XML and Zope newbie question...
Eric, Take a look at the XMLDocument product, available from Zope.org. It already parses the xml into zope objects (they may not be exactly what you want though), but it may give you a start into what you want. hth Phil [EMAIL PROTECTED] - Original Message - From: "Eric L. Walstad" [EMAIL PROTECTED] To: "Zope@Zope. Org" [EMAIL PROTECTED] Sent: Thursday, September 07, 2000 7:53 PM Subject: [Zope] XML and Zope newbie question... Hi All, I am just getting started in XML and am trying to figure out how it works with Zope. I would like to be able to post some data to Zope in XML format and have Zope parse the data into Zope objects. Is this possible? It seems like I should be able to create the Zclasses and, when Zope receives the post, have Zope automagically create the necessary objects from my classes. Any input on how to do this or pointers to a better way would be fantastic. Please respond to me directly as I am not currently able to handle the list volume. Thanks, Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.2.1 Solaris 8 dumps core
Brian Lloyd wrote: I've downloaded the src of Zope 2.2.1 on my UltraSparc running Solaris 8, built it ok, but when I try run ./start it it dumps core with a segmentation fault. Is this problem known? Anything I can do? I am completely new to both Python and Zope ... I don't know of any problems inherent to running on Sol8. It seems like maybe it could have something to do with your Python installation. One way you could test that is to cd to the lib/python dir of your Zope installation, start your local Python interpreter and try: import ExtensionClass Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations www.digicool.com I've tried that and it dumped. I'll have to poll the Python knowledge base for that ... Python was built using gcc as Zope was. Thanks anyway Michele ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] This must be a namespace problem
I have a site structure like this: root subfolder Then i have made a dtml document "index_html" in the "root" folder like this: html headtitletest/title/head body dtml-var content /body /html Also I have a dtml method "content" in the root folder like this: h2Root folder/h2 this is the content of the root folder Then I have made a method "content" in "subfolder" h2Sub folder/h2 this is the content of the sub folder all in all: root index_html content subFolder content When i view "root" folde i see the index_html document just fine, and the content gets inserted like it should. But when I view the "subFolder" I would expect it to look for the "index_html" in the root folder and then the "content" method in the subFolder. But it uses the "root" folder "content". How can I make it us the "content" in the current directory, but the index_html from the root folder. Can this not be done?? Kind 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 )
Re: [Zope] This must be a namespace problem
But it uses the "root" folder "content". How can I make it us the "content" in the current directory, but the index_html from the root folder. Can this not be done?? This is an acquisition problem we will all be bitten by at one time or another. There is some documentation about this, including Jim Fultons Acquisition Algebra talk (http://www.zope.org/Members/jim/Info/IPC8/AcquisitionAlgebra/index.html) and my Changing Contexts in Zope (http://www.zope.org/Members/Hoekstra/ChangingZopeContexts) a way of showing acquisition is described in: http://www.zope.org/Members/chrisw/showaq 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 )
[Zope] Icons in a product
Hi Zopists, I would like to know if there is any possibility how to publish an icon on the web which is in www folder of my own created product. That is I want to put some icons into the www folder of my product and to have possibility to show them on the web. The problem with my own stylesheet of my product is similar. Is there any possibility to put it in the product (not ZODB) and later use it. In both cases I don't want put anything into /Control_Panel/Products/myProduct/ over web interface. I use Zope 2.1.6 I need to put any icon into my python product and later have possibility to call this icon on the web. Where to put it in my folder structure on the box and what the URL will be? Thanks for help, Petr -- Petr Knpek NEXTRA Czech Republic, s.r.o., Veve 102, 659 10 Brno, Czech Republic e-mail: mailto:[EMAIL PROTECTED] tel:+420-5-41 558 394 FAX:+420-5-41 558 390 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] MountedFileStorage
Hi, Using and reading the MountedFileStorage Product I got the impression that I can mount an existing Data.fs in another Data.fs. Is this possible or is only possible to mount a "create new" Data.fs? Thanx, Júlio Dinis _ 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 )
[Zope] Access and accounts NT vs ?
I am developing an Intranet application for the company I work for. I am trying to come up with an easy way to tie in the Zope security model and users in an external database. Is there a way to manipulate the security access and have those changes reflected in a database such as Gadlfy? I would also like to sync the users with there NT accounts. I have looked at the NTusersfolder and can not quite figure out how it is supposed to work. Being a Unix guy I dont have that much experience with NT. And would it still be feasible to tie it in with a DB? - Bryan Patrick Coleman Questcon Technologies (336)273-2428 ext-416 [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] ZCatalog or Traversal question ?
Hi, I want to query content built with CatalogAware ZClasses on my site. I am able to get the abstract document ('abstract' method) which is a subobject of the document I want to display (let say 'Document' ZClass). But I don't know how to display the id of the resulting 'Document'. With the following snippet I get a partial solution since I get the url: dtml-in Catalog dtml-if "meta_type=='DTML Method' and id=='abstract'" a HREF="http://www.mydomain.comdtml-var "Catalog.getpath(data_record_id_)"/../" dtml-with "Catalog.getobject(data_record_id_)" dtml-var "REQUEST['URL2']" /dtml-with /a /dtml-if /dtml-in How can I get the id or title of (Document) instead of the url ? Many thanks. -- Kamon Ecubateur _ 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 )
[Zope] Zope and DreamWeaver
Hi all I installed the Zope-DTML DW3 Extension and loaded in a page with DTML commands. My pc hanged, I have Win NT 4, DW 3.01 and DW UltraDev. The memory blocked by DW was about 780MB. Anyone has an idea what to check Thank you Gottfried Ryser[EMAIL PROTECTED]
Re: [Zope] NEWBIE HELP can not get Zope to start
"Martijn" == Martijn Pieters [EMAIL PROTECTED] writes: 7. I quit netscape, and restart and attempt to login as the new user - DOES NOT WORK Martijn One possible explanation for the denial of your login is Martijn that you filled something in the domains field, which Martijn should only be used if you want to limit the domains a Another common problem I've seen is that folks don't select a *role* for their new user did you give the new user the 'manager' role? -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] NEWBIE HELP can not get Zope to start
On Fri, Sep 08, 2000 at 06:50:20AM -0500, Steve Spicklemire wrote: "Martijn" == Martijn Pieters [EMAIL PROTECTED] writes: 7. I quit netscape, and restart and attempt to login as the new user - DOES NOT WORK Martijn One possible explanation for the denial of your login is Martijn that you filled something in the domains field, which Martijn should only be used if you want to limit the domains a Another common problem I've seen is that folks don't select a *role* for their new user did you give the new user the 'manager' role? A common error here is to assume that the list of Roles you see are the Roles the USer has been given. In stead, it is a list of _possible_ Roles, you need to select which ones this User will have. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: PATH_INFO==object
Thanks for the correction. Now I see that PATH_INFO refers to the current page, not the calling page. I think the hidden input field solution is OK for me. What is the *Traversal interface*? Do you mean the PARENTS enviroment? - Original Message - From: "Martijn Pieters" [EMAIL PROTECTED] To: "Li Dongfeng" [EMAIL PROTECTED] Cc: "Zope" [EMAIL PROTECTED] Sent: Friday, September 08, 2000 5:01 PM Subject: Re: [Zope] Help: PATH_INFO==object On Fri, Sep 08, 2000 at 11:32:39AM +0800, Li Dongfeng wrote: I am writing a service for other pages to use as form action. How can I reference the caller object in DTML/python? I can only think of this: First use PARENTS[-1] to get to the root object of the site. Then split the PATH_INFO containing the caller's path, and go down from the root to every subfolder in PATH_INFO and then get to the caller object. But this is not very elegant. Can anyone give better solution to this? PATH_INFO only tells you something about the service object, not about the calling page. If you use this as a FORM action target, it's the browser that makes the call, not Zope. You can, in many cases, determine the browser URL by looking at HTTP_REFERER, but many people and companies use proxies and firewalls to filter this out nowadays; it is considered sensitive information. If this app is targeted at a intranet or other controlled environment, you could dictate the presence of HTTP_REFERER, and rely on that, otherwise you will have to add a reference as a hidden form field generated by the calling object. Once you have a URL of the calling object, you can use the Traversal interface to turn that URL into an object reference. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] MetaData?
kamon ayeva wrote: How can I get the id or title of (Document) instead of the url ? Aren't they in the MetaData returned by the catalog query? If they aren't, add them ;-) 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] MetaData?
OK, checking the Advanced ZCatalog Howto, I just found I could maybe use something like dtml-in "Catalog(meta_type=['DTML Method','Document', 'Anothermetatype])" Method or Document or Anothermetatype: dtml-var "Catalog.getpath(data_record_id_)"br /dtml-in to solve my problem. Haven't yet tested, so I dunno if it's my best option. -- Kamon From: Chris Withers [EMAIL PROTECTED] To: kamon ayeva [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Zope] MetaData? Date: Fri, 08 Sep 2000 13:06:50 +0100 kamon ayeva wrote: How can I get the id or title of (Document) instead of the url ? Aren't they in the MetaData returned by the catalog query? If they aren't, add them ;-) cheers, Chris _ 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 )
[Zope] change_properties
Hallo, that's the problem: dtml-call "Dict_Test.manage_changeProperties({'Budget[0]': neuesBudget})" This means I'd like to change in a token property only one value but it's not working. Thanks -- Sent through GMX FreeMail - http://www.gmx.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] DCOracle examples
I have just installed the DCOracle package to access an Oracle 8.0.5 server with python1.6. I have run with success the test script DCOracle_test.py connecting to the Oracle database. I would like to see some python examples of the DBI API with queries and so on. Could you give any help? Celio Guimaraes Institute of Computing Unicamp - Campinas - Brazil ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] re module through the web security
Evan Simpson writes: Ah, but I was sneaky and went and updated it just before posting ;-) You do have to follow a link or two, but it isn't hard to find (any more). Thanks a lot! That'll teach me not to refresh the page when I check back :-) It now answers all my questions. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Using Zope DB connection from a Python class
Hi, is there anybody who did alter the ZOBCDA to work under Linux using one of the free open source adapters? I would like to share (get ;-) the code. Tnanks! Andrew Kenneth Milton wrote: +[ Tino Wildenhain ]- | Hi Ivan, | | 3. Zope 2.1.7 | Z ODBC DA 3.0.3 | Solid dev kit 2.3 | RedHat Linux 6.1 on i386 | | How to use Z ODBC DA on Linux? I only found a windows binary. You need to do a few things: First the ZODBCDA comes with src for the python ODBC wrapper. You can alter this src to use your ODBC library rebuild it and move the .so file up a directory. For UNIX ODBC libraries you have some choices:- OpenSource -- iODBC-- works OK unixODBC -- I had problems with this, but, it's not a very mature product, I didn't really stick with it at the time either (time constraints). -- connection reset by Peer ___ Dr. Peer Griebel Tel. +49 7581 4831 23 Geschäftsführer Fax. +49 7581 4831 11 Knoll Informationssysteme GmbH http://www.knoll-is.de Dreiköniggasse 17 mailto:[EMAIL PROTECTED] 88348 Saulgauprivat: mailto:[EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Not able to render a base class...
| -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kapil | Thangavelu | Sent: Tuesday, September 05, 2000 12:11 PM | To: Brian Withun | Cc: Zope mailing list | Subject: Re: [Zope] Not able to render a base class... | | | Brian Withun wrote: | | = :PREFACE: = | | I have placed the __init.py__ and Renderable.py into | .\lib\python\Products\Renderable and have restarted Zope | (necessary? ..I'm | too used to windows ;-) | | I made a trivial little Folderish ZClass and am trying to get | it to render | itself... | | I've defined a 'view' tab that represents the ZClass, and it works as | expected, with 'View' being bound to an 'index_html' method of | my folderish | ZClass. | | I've added one of these ZClasses to a development folder. | | The development folder also contains a dtml document named | 'index_html' as | follows: | | dtml-var standard_html_header | h2dtml-var title_or_id/h2 | p | This is the dtml-var id Document. | /p | dtml-var one | dtml-var standard_html_footer | | 'test' is my product | 'testclass' is my ZClass (in the product 'test') | 'trial' is my development folder | 'one' is the ZClass instance in the 'trial' folder | 'Tropical' is an image id in the ZClass | | = :PROBLEM: = | | Why does 'trial/index_html' render this: | | htmlhead/head | body | h2index_html/h2 | p | This is the index_html Document. | /p | testclass instance at 00DD45A8 | /body/html | | ..and how do I turn 'testclass instance at 00DD45A8' into a | rendering of | the ZClass instance ? | | | Make sure your zclass inherits from Renderable | make a dtml method called render in your zclass | adjust render to display the zclass as you wish | | | Kapil | Okay, I can make these changes, but when you say 'Make sure your zclass inherits from Renderable,' how do I do that? Should I see 'Renderable' as one of the BASE CLASSES available when I am creating a zclass, or can I somehow modify an existing zclass to all-of-a-sudden inherit from Renderable (and how would one do that??) I was rather expecting to see 'Renderable' as an option in the BASE CLASSES, but it's not there. If it's supposed to be there, can you fathom what I may have done wrong? Brian Withun ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Icons in a product
On Fri, 8 Sep 2000 23:18:40 +1000, Andrew Kenneth Milton [EMAIL PROTECTED] said: Hi Andrew, thank you very much for quick answer but I it doesn't work because in my __init__.py I register the product with the initialize(context) function. def initialize(context): try: context.registerClass( ISNG.ISNGDocument, constructors = ( ISNG.manage_addISNGDocumentForm, ISNG.manage_addISNGDocument), icon = 'www/Document_icon.gif' ) except: import sys, traceback, string type, val, tb = sys.exc_info() sys.stderr.write(string.join(traceback.format_exception(type, val, tb), '')) del type, val, tb I think (not sure) that misc_={'iconId': ImageFile('www/icon.gif',globals()).} will work only if product is not registered by the old way (not my case) because I tried to put it on different places of my __init__.py and wasn't succesfull. Please, can anybody help me or give me a URL where the problems noted below are solved. Thanks, Petr AKM +---[ Petr Knapek ]-- | Hi Zopists, | I AKM would like to know if there is any possibility how to publish AKM an icon | on the web which is in www folder of my own created AKM product. That is I | want to put some icons into the www folder AKM of my product and to have | possibility to show them on the AKM web. The problem with my own stylesheet | of my product is AKM similar. Is there any possibility to put it in the | product AKM (not ZODB) and later use it. In both cases I don't want put | AKM anything into /Control_Panel/Products/myProduct/ over web AKM interface. I | use Zope 2.1.6 | | I need to put any icon into AKM my python product and later have possibility | to call this AKM icon on the web. Where to put it in my folder structure on | AKM the box and what the URL will be? | | Thanks for help, Petr AKM In your __init__.py; AKM from ImageFile import ImageFile AKM misc_={'iconId': ImageFile('www/icon.gif',globals()).} AKM You then reference it is as:- AKM img src="/misc_/YourProductName/iconId" -- Petr Knpek NEXTRA Czech Republic, s.r.o., Veve 102, 659 10 Brno, Czech Republic e-mail: mailto:[EMAIL PROTECTED] tel:+420-5-41 558 394 FAX:+420-5-41 558 390 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] manage_workspace
Hello, I'am looking for the source-code from "manage_workspace". Where do I find this file or is it part of a *.py - file ? Thank you very much for your help Mechtild Hofmann -- http://www.der-schwarzwald-bebt.de/Wolterdingen - in der Heimat passiert was! [EMAIL PROTECTED] T: 07705 / 919391 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Need help with ZJetDA, Winnt4 and Zope 2.2.1
I appreciate your response. I had copied the data.fs over to the server with no success. I have the (buzzword alert)"web app" up and running on ZODBCDA. I still haven't solved the ZJetDA problem, but with ODBC, I may well ignore it. I wonder if iODBC or unixODBC is able to connect to access. I will let you know if I figure it out. My Zope versions are the same and I have the same products on each. I think I must have screwed up my permissions somewhere, but I think it might be on the NT side instead of Zope. I say this because the superuser cannot test the adapter successfully with permissions wide open with and without acquisision. More to come. Thanks. Troy -Original Message- From: Rik Hoekstra [mailto:[EMAIL PROTECTED]] Sent: Friday, September 08, 2000 4:33 AM To: Farrell, Troy Cc: '[EMAIL PROTECTED]' Subject: Re: [Zope] Need help with ZJetDA, Winnt4 and Zope 2.2.1 "Farrell, Troy" wrote: As you have no doubt heard my cries for help, I figure that very few are running NT4. More than would admit it, probably. Perhaps no one knows the answer to what seems to be a rather specific situation. For one, I have the impression most people use zodbc connections to access database then use the zjetadapter (so do I, so chances are I might be just blabbering). I am having a permissions difficultie with ZJetDA trying to modify data in an Access97 database. On my server, the DA is able to SELECT * FROM tablename with no problem, but when it comes to INSERT INTO tablename VALUES (...) or UPDATE, I get a Query Error with a value of INVALID OPERATION. I mirror (It is identical, i checked 5+ times) all the objects on my NT4 laptop and it works ok. The databases are Identical, I copied the working one to the non-working server and still no go. The traceback is as follows: hm one stupid question: isn't by accident the working one read-only by accident (this happened to me more than once and it _will_ happen if the access file is not copied properly. Who knows what copying properly is - please speak up). __call__ (Object: bmsdb_jet_select_browse_state_sub_insert_into_temptablebrowse) File C:\PROGRA~1\JESTER\lib\python\Products\ZJetDA\db.py, line 130, in query Query Error: (see above) you could try this with the zodbc adapter. Please make sure you odbc connection is made under the system account though. Rant: I've been working on this for days. I don't seem to understand the security model since I didn't have any problems before 2.2.x. If I cannot get this resolved, I'll move back to the 2.1.x series. I really want this to work as it is my companie's introduction to open source software. Have a :) day. hm is the Zope version the same on your laptop and your server then? If so, then the security thing should be the same on both, right? If not - then how can you say all objects are the same? Did you copy you data.fs database from one machine to the other? success, let us know how it goes 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 ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] SiteRoot (SiteAccess) problem
No, I unpacked the tarball in the Products directory. Any more ideas? Any idea how to get SiteRoot to show up on the available items list? Josh At 6:20 PM +0200 9/8/00, Wouter van Hilst wrote: Hi, Did you unpacked the tarbal in the Zope-root? Then its not working. You have to unpack it in the directory: Zope-2.2.1-linux2-x86/lib/python/Products: then it must work! regards, Wouter -- deeldrie grafische vormgeving - fotografie - interactieve vormgeving Donker Curtiusstraat 63 1051 MC Amsterdam T (020) 681 36 99 F (020) 681 38 65 From: Joshua Brauer [EMAIL PROTECTED] Date: Thu, 7 Sep 2000 15:53:30 -0600 To: [EMAIL PROTECTED] Subject: [Zope] SiteRoot (SiteAccess) problem I'm running a new server with 2.2.1 and Siteaccess 2.0.0 b3 and I don't get a "SiteRoot" item in the available items list. I can copy site roots and move them, but I cannot create new site roots... After reinstalling SiteAccess ( restarting) I still have problems. Any ideas? General Info: * Zope version: Zope 2.2.1 (binary release, python 1.5.2, linux2-x86) * Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 19990314/Linux (egcs- * System Platform: linux-i386 Installed Products: AspSucks (Installed product AspSucks) BTreeFolder (Installed product BTreeFolder (BTreeFolder-0.1.1)) Calendar (Installed product Calendar (calendar-0-9-0)) Confera (Broken product Confera) DemoPortal (Through-the-web Sample Portal) ExternalMethod (Installed product ExternalMethod (External Method-1-0-0)) Fortune (Installed product Fortune) Glossary (Glossary ZClass) Hotfix_06_16_2000 (Installed product Hotfix_06_16_2000) Hotfix_2000-08-17 (Installed product Hotfix_2000-08-17) IMAPAdapter (Broken product IMAPAdapter) KMnetNews (KM|net News) KnowledgeKit LoginManager (Installed product LoginManager (LoginManager-0-3-0)) MIMETools (Installed product MIMETools) MailHost (Installed product MailHost (MailHost-1-2-0)) NewsSyndicate (Installed product NewsSyndicate (NewsCenter 0.0.5)) NotMail (Broken product NotMail) OFSP (Installed product OFSP (OFSP-1-0-0)) PTKBase (Installed product PTKBase) PTKDemo (Installed product PTKDemo) Photo (Installed product Photo (Photo-0-4-0)) Planner (Planner) Poll (Installed product Poll (Poll-0-6-0)) PythonMethod (Installed product PythonMethod (PythonMethod-0-1-7)) Redirector (Installed product Redirector) SiteAccess (Installed product SiteAccess (SiteAccess-2-0-0b3)) Squishdot (Installed product Squishdot (Squishdot-0-7-1)) TinyCal (Installed product TinyCal (calendar-0-9-0)) TinyTable (Installed product TinyTable (TinyTable-0-8-2)) WebPages (WebPages Class) Wizard WorldPilot (Installed product WorldPilot (WorldPilot 1.00.3)) XMLDocument (Installed product XMLDocument (XML Document 1.0a6)) ZCallable (Installed product ZCallable) ZCatalog (Installed product ZCatalog (ZCatalog-2-2-0)) ZFDocument (Installed product ZFDocument) ZGadflyDA (Installed product ZGadflyDA) ZPhotoAlbum (Z Photo Album) ZPyGreSQLDA (Installed product ZPyGreSQLDA (ZPyGreSQLDA-0-0-3)) ZRTChat (HTML Chat for Zope) ZSQLMethods (Installed product ZSQLMethods) ZopeTutorial (Installed product ZopeTutorial (Zope Tutorial 1.0)) beehiveCal (Installed product beehiveCal (Version 0.2.0)) seminarCalendar (Seminar Calendar) -- - Joshua Brauer Computer Support Scientist Department of Biochemistry and Molecular Biology Colorado State University Fort Collins, CO 80523 (970) 491-1080/pager: (970) 498-7995, #5837 - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- - Joshua Brauer Computer Support Scientist Department of Biochemistry and Molecular Biology Colorado State University Fort Collins, CO 80523 (970) 491-1080/pager: (970) 498-7995, #5837 - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] SiteRoot (SiteAccess) problem
From: Joshua Brauer [EMAIL PROTECTED] I'm running a new server with 2.2.1 and Siteaccess 2.0.0 b3 and I don't get a "SiteRoot" item in the available items list. I can copy site roots and move them, but I cannot create new site roots... After reinstalling SiteAccess ( restarting) I still have problems. Any ideas? Err... if you delete the SiteAccess Product object (not the directory!) from Control Panel/Products and restart, does it come back unbroken? Do the existing SiteRoots do their jobs? General Info: * Zope version: Zope 2.2.1 (binary release, python 1.5.2, linux2-x86) * Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 19990314/Linux (egcs- * System Platform: linux-i386 Installed Products: [snip list of every Zope Product ever made, practically] I ... wow. Speechless, Evan @ digicool 4-am ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: Set Access Rule wish
From: Albert Boulanger [EMAIL PROTECTED] Its nice that the icon for the method, who is the access rule's target, is changed. However, I think also there needs to be some indicator on the folder involved as well. Unfortunately, the rule icon is already a fragile hack. If you copy, rename, export, or otherwise move an Access Rule, it ceases to be an active rule, but the icon doesn't go away. The only thing which gets rid of it is using Set Access Rule to turn it off. I'd like to come up with something more robust; I'm open to implementation suggestions. Keep in mind that the container and object involved don't know anything about Access Rules. Cheers, Evan @ digicool 4-am ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Lock and Transaction in Zope.
Hi Aitor, (I am posting to the Zope mailing list, too.) I have Zope in W2000 Zope 2.2.1 Internet Explorer 5.0 Ok. I just tried with Zope on Linux, after I tried with Zope on Windows 98. RedHat 6.2 Zope 2.1.6 Internet Explorer 5.0 Guess what? The thread did not hang. The long thread returns, but the value of your "var" was 2. The situation is then: (1) For Zope running on Windows, the long thread hangs and never returns anything to the browser. (2) For Zope running on Linux, the long thread gets into transaction conflict. But Zope was smart enough to abort the transaction and restart the request again. (Just like what other people said.) I think this should be considered as a bug in Zope for the Windows platform. We should submit the bug report to the Zope bug collector. Notice that it happens for Zope 2.1.6 and Zope 2.2.1, I wonder why no one has reported this bug... (or has it been reported but not been fixed?) 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 )
[Zope] ZClass, acquisition, dtml confusion
Hello, Previously I made a DTML method that when used within a DTML Document would modify properties on that document. Having this floating around in root made it visible to the whole site, but seemed 'unclean'. So, I attempted to make the DTML method into a ZClass, and making the index_html method in the ZClass contain the exact same DTML as the method... But it doesn't work. So, I tried again - this time with as simple a method as possible, a very basic counter. The DTML method I made in root increments and displays the 'z_count' property on the page that calls it, and creates the property if it doesn't exist, so using it is as simple as: dtml-var mycount However, I place the DTML into a new class, and then make a new instance of the class, and it wont work as above. I now have to do this: dtml-with MyZCCount dtml-var MyZCCount /dtml-with And, instead of modifying the property of the calling document, it modifies the parent folder's properties. Below is the DTML, can someone please explain what I need to do to get this to work on the calling DTML document instead? If I can't get this simple counter to work I'm going to go mad, since changing properties is something I need to be able to do from many of my planned ZClasses... Thanks in advance! dtml-if "hasProperty('z_count')" dtml-var "'%06d' % (z_count + 1)" dtml-call "REQUEST.set('z_count', z_count + 1)" dtml-call "manage_changeProperties(REQUEST)" dtml-else dtml-call "manage_addProperty('z_count', 1, 'int' )" 01 dtml-if ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] MetaData?
Hi Chris, From: Chris Withers [EMAIL PROTECTED] To: kamon ayeva [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [Zope] MetaData? Date: Fri, 08 Sep 2000 13:06:50 +0100 kamon ayeva wrote: How can I get the id or title of (Document) instead of the url ? Aren't they in the MetaData returned by the catalog query? They are. But I guess the text searching is on the 'abstract' method, and what I need is something like PARENTS[] to jump to the container. Or am I missing something about good usage of ZCatalog ? If they aren't, add them ;-) cheers, Chris -- Kamon _ 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] OSError along with FSSession...
On Wed, 6 Sep 2000, Chien-Pin Wang wrote: Dear Zope Users: I have upgraded to FSSession 0.4.2 lately and occasionally run into the same problem several times. Each time it costs me a zope down. I do really need some help... Zope complains an error type "OSError" and throws the error value saying [Errno 21] Is a directory: '/usr/local/zope/var/FSSession/' occasionally since a recent upgrade of FSSession product to 0.4.2. I have managed to reproduce the error by setting SessionUID to an empty string before calling FSSession. Check for situations where you clear the REQUEST variables before calling FSSession. In the meantime I will add some checks on the input values of SessionUID. I will probably release a fixed version during the weekend if not sooner. Pavlos ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Icons in a product
+---[ Petr Knapek ]-- | Hi Zopists, | I would like to know if there is any possibility how to publish an icon | on the web which is in www folder of my own created product. That is I | want to put some icons into the www folder of my product and to have | possibility to show them on the web. The problem with my own stylesheet | of my product is similar. Is there any possibility to put it in the | product (not ZODB) and later use it. In both cases I don't want put | anything into /Control_Panel/Products/myProduct/ over web interface. I | use Zope 2.1.6 | | I need to put any icon into my python product and later have possibility | to call this icon on the web. Where to put it in my folder structure on | the box and what the URL will be? | | Thanks for help, Petr In your __init__.py; from ImageFile import ImageFile misc_={'iconId': ImageFile('www/icon.gif',globals()).} You then reference it is as:- img src="/misc_/YourProductName/iconId" Please excuse any obvious mistakes in this I'm a little sloshed at the moment d8) -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] repost : pb with acl_users domains for clients behind a proxy/firewall
Hello, I'm reposting here, since i couldn't solve this strange problem. Our users are acessing to the Zope server (wich is on the Internet) thru corporate (government) firewall/proxys. Some users in acl_users are declared with a "domain" restriction. wich is a generic "gouv.fr" or "agriculture.gouv.fr". It doesn't seems to be effective and the login is rejected, while the same user without any "domain" restriction works fine. I'm suspecting some changes in the REQUEST made by the corporate proxys. Is there any doc about what REQUEST variable is used in the "domains" restriction ? I have a HTTP_FORWARDED in the REQUEST but with the *proxy* name (unfortunately without the .gouv.fr). I can't find anything on the site and the list either.Thanks in advance. Didier Georgieff. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Problems with export
I tried to export an opject with the import/export function, but I got the following error msg. 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 /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope2/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_exportObject) File /usr/local/Zope2/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_exportObject) File /usr/local/Zope2/lib/python/OFS/ObjectManager.py, line 463, in manage_exportObject (Object: Traversable) File /usr/local/Zope2/lib/python/OFS/ObjectManager.py, line 236, in _getOb (Object: Traversable) AttributeError: (see above) Thank you for help Gottfried Ryser ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 HELP can not get Zope to start
On Fri, 8 Sep 2000, Martijn Pieters wrote: On Thu, Sep 07, 2000 at 10:12:16PM -0400, Douglas Eadline wrote: 6. OK, I'll add a user. I go to acl_users and add a user. 7. I quit netscape, and restart and attempt to login as the new user - DOES NOT WORK 8 I check /var/zope/access - no new user added Only the superuser (more accuratly the bootstrap user now) is defined in the access file. All other users are defined in User objects in the Object Database. You will notice that the file var/Data.fs will have grown. 9. I quit netscape and re-login as superuser. I look at the user I added, now the password field has more stars in it than the password I assigned. The confirm field has 1 star less than the password field. For security reasons, the page with the password and confirm fields is not rendered with the original password; you can view the source to see this, the password would have to be sent verbatim in order to do that. In stead, the magic values 'password' and' 'confirm' are used, to indicate that you didn't want to change the user password, only the other fields. One possible explanation for the denial of your login is that you filled something in the domains field, which should only be used if you want to limit the domains a user can login from, and made a mistake there. The format is a _space seperated_ list of domains, each of which can use the '*' wildcard for any part between the dots and can be an ip or a name: 10.0.0.* localhost *.mydomain.com If you did fill in that field, clear it, and try again. Also note that both user id and password are case sensitive. Try a simple username and password first, like 'test' and 'test'. Let us know if you succeed! It works now. I needed to highlight the manager Role. Thanks. Doug -- --- Paralogic, Inc. | PEAK | Voice:+610.814.2800 130 Webster Street| PARALLEL |Fax:+610.814.5844 Bethlehem, PA 18015 USA | PERFORMANCE |http://www.plogic.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] ZClass, acquisition, dtml confusion
Jon Franz wrote: dtml-var mycount However, I place the DTML into a new class, and then make a new instance of the class, and it wont work as above. I now have to do this: dtml-with MyZCCount dtml-var MyZCCount /dtml-with And, instead of modifying the property of the calling document, it modifies the parent folder's properties. Below is the DTML, can someone please explain what I need to do to get this to I hope someone can answer this. I am having a similar problem. I posted yesterday but haven't received an answer yet either. There is a significant difference in the way properties get changed in a ZClass depending on it being a folderish property or a document property. Trouble is I have figured out those differences. g Can someone shed some light on this? -- Tim Cook -- FreePM Project Coordinator http://www.freepm.org OS Health Care Alliance Supporter http://www.oshca.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Macintosh Zope.
Is anybody running zope on a Mac OS 8.x or 9? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: Scheduling Xron event reports TypeError
From: "Dwayne Morrison" [EMAIL PROTECTED] Hi, Sorry to mail you directly instead of posting to the zope group, but my posts are bouncing from egroups.com. egroups is just a mirror. You have to post to [EMAIL PROTECTED] You can join [EMAIL PROTECTED] from http://www.zope.org/Resources/MailingLists . Anyway, I'm having trouble scheduling events with Xron 0.0.9. I try to create a scheduled event as described in the doc: dtml-with "manage_addProduct['Xron']" dtml-call expr="manage_addXronDTMLMethod( this(), 'SchedMethodId1', 'Scheduled Method 1 Title', file = 'Content-Type: text/plain\n\nBANG!!!', executeAt = _.DateTime()+14 )" /dtml-with When executed within a DTML method, the code reports this error: Error Type: TypeError Error Value: keyword parameter redefined I found that the 0.0.9 version of Xron added a new parameter, periodDays, to the method. Adding that produced the same error message. I tried naming all parameters also to no avail. Any suggestions would be greatly appreciated. Environment: Zope version: Zope 2.2.0 (binary release, python 1.5.2, solaris-2.6- sparc) Thanks in advance, The above method works on Zope 2.1.3 but not on Zope 2.2.0. I don't know why there should be a difference. I will check into it and let you know what I find. Maybe someone else on the list has a ready answer? -- Loren ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Macintosh Zope.
on 9/8/00 3:18 PM, Steve Drees at [EMAIL PROTECTED] wrote: Is anybody running zope on a Mac OS 8.x or 9? Python 1.5.2 and before for Mac is not threaded, so it doesn't support Zope. 1.6 for Mac is reportedly threaded, but there are some remaining problems (i.e., I tried it once and didn't get a successful compile). I haven't had a chance to follow it up further. Mac OS X make make this moot. I haven't had the opportunity to try it yet, but I believe Zope has been run on OS X Server. I don't know whether anyone has tried with the developer releases of OS X, but I'm planning to give it a shot with the beta release when it's available. Jim Harrison University of Pittsburgh ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Import from file via management-interface
Hi all, I found it very disturbing having to get my .zexp exports into the subdirectory 'import' of the server and then using the management-interface to do the actual import. So I patched ObjectManager and the compaining dtml-file. Please check them out (included in the mail, sorry for the traffic) if I should post them to the collector. Regards Tino ## # # Zope Public License (ZPL) Version 1.0 # - # # Copyright (c) Digital Creations. All rights reserved. # # This license has been certified as Open Source(tm). # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions in source code must retain the above copyright #notice, this list of conditions, and the following disclaimer. # # 2. Redistributions in binary form must reproduce the above copyright #notice, this list of conditions, and the following disclaimer in #the documentation and/or other materials provided with the #distribution. # # 3. Digital Creations requests that attribution be given to Zope #in any manner possible. Zope includes a "Powered by Zope" #button that is installed by default. While it is not a license #violation to remove this button, it is requested that the #attribution remain. A significant investment has been put #into Zope, and this effort will continue if the Zope community #continues to grow. This is one way to assure that growth. # # 4. All advertising materials and documentation mentioning #features derived from or use of this software must display #the following acknowledgement: # # "This product includes software developed by Digital Creations # for use in the Z Object Publishing Environment # (http://www.zope.org/)." # #In the event that the product being advertised includes an #intact Zope distribution (with copyright and license included) #then this clause is waived. # # 5. Names associated with Zope or Digital Creations must not be used to #endorse or promote products derived from this software without #prior written permission from Digital Creations. # # 6. Modified redistributions of any form whatsoever must retain #the following acknowledgment: # # "This product includes software developed by Digital Creations # for use in the Z Object Publishing Environment # (http://www.zope.org/)." # #Intact (re-)distributions of any official Zope release do not #require an external acknowledgement. # # 7. Modifications are encouraged but must be packaged separately as #patches to official Zope releases. Distributions that do not #clearly separate the patches from the original work must be clearly #labeled as unofficial distributions. Modifications which do not #carry the name Zope may be packaged in any form, as long as they #conform to all of the clauses above. # # # Disclaimer # # THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY # EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DIGITAL CREATIONS OR ITS # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # # This software consists of contributions made by Digital Creations and # many individuals on behalf of Digital Creations. Specific # attributions are listed in the accompanying credits file. # ## __doc__="""Object Manager $Id: ObjectManager.py,v 1.98.8.7 2000/08/17 20:20:01 shane Exp $""" __version__='$Revision: 1.98.8.7 $'[11:-2] import App.Management, Acquisition, Globals, CopySupport, Products import os, App.FactoryDispatcher, ts_regex, Products from OFS.Traversable import Traversable from Globals import HTMLFile, HTMLFile, Persistent from Globals import MessageDialog, default__class_init__ from webdav.NullResource import NullResource from webdav.Collection import Collection from Acquisition import aq_base from urllib import quote from cStringIO import StringIO import marshal import App.Common from AccessControl import getSecurityManager from zLOG import LOG, ERROR import sys import XMLExportImport customImporters={ XMLExportImport.magic: XMLExportImport.importXML, }
RE: [Zope] Not able to render a base class...
On Fri, 8 Sep 2000, Brian Withun wrote: I was rather expecting to see 'Renderable' as an option in the BASE CLASSES, but it's not there. If it's supposed to be there, can you fathom what I may have done wrong? You need to install the Renderable product. --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] change_properties
On Fri, 8 Sep 2000 [EMAIL PROTECTED] wrote: dtml-call "Dict_Test.manage_changeProperties({'Budget[0]': neuesBudget})" This means I'd like to change in a token property only one value but it's not working. I don't think you can do that. I presume that manage_changeProperties uses the variable names passed in to look the property up in the property dictionary, and it isn't going to find a property named 'Budget[0]' in that list. I think you'll have to pass it the whole value of budget with the appropriate cell modified: dtml-call "Dict_Text.manage_changeProperties({'Budget':[neuesBudget]+Budget[1:]})" --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] manage_workspace
On Fri, 8 Sep 2000, Mechtild Hofmann wrote: I'am looking for the source-code from "manage_workspace". Where do I find this file or is it part of a *.py - file ? Yes, it's in a .py file. I think the one you are looking for is in lib/python/App/Management.py. --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Import from file via management-interface
How about just the patch next time, as opposed ot the whole patched filed? -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 does one display document count of a folder?
I am using a script to display the contents of a folder, but I wonder how I might display a document count of the dtml documents in a folder? Here is the script I use to display folder contents: dtml-with my_folder dtml-in "objectIds()" a href="dtml-var "_.getitem(_['sequence- item'],0).absolute_url()""dtml-var sequence-item/abr /dtml-in /dtml-with Thanks in advance! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML Question on lines
Tim Cook writes: "Coleman, Bryan" wrote: I am trying to itterate through a lines SELECT name="mySelection" dtml-in valid_codes option value="dtml-var sequence-item" dtml-var sequence-item nbsp; /option In some cases, "html_quote" will be necessary, or a dtml-entity reference (which automatically does "html_quote") like this: option value="dtml-var sequence-item html_quote" dtml-var sequence-item or option value="dtml-sequence-item;" dtml-var sequence-item As a general rule, use a dtml entity reference, when a variable is used in a HTML attribute. 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] Is Squishdot ready for prime time?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm thinking of recommending it for use at work. Is it reliable? John Holland - --- Email: [EMAIL PROTECTED] Web: http://jbhsoft.linuxave.net Public key : finger -s or http://jbhsoft.linuxave.net/pubkey.html -BEGIN PGP SIGNATURE- Version: PGP 6.5.2 iQA/AwUBObmLxhPWCCE2yAKHEQIsxgCfcl8p7PdI3WWCKGpLNboq7hfZOT4An2LL Sr8S7931nDFoBuNqkibp5mbz =S3k1 -END PGP SIGNATURE- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 namespace behaviour (was: Re: ZClass Bug)
Hi Tim, Tim Hicks writes: The "theatre_class" ZClass constructor "theatre_class_add" raises a NameError "theatre_class" in dtml-with "theatre_class.createInObjectManager(REQUEST['id'], REQUEST)" if called in some folders but not in other folders When I try to copy and paste a zclass in these folders, I get the error ... "One or more items referred to in the clipboard data was not found. The item may have been moved or deleted after you copied it." ... In the other folders, everything is fine When I try to rename a class in these folders, it raises an AttributeError in "ObjectManager(236)._getOb", Object "Traversable". ... In the other folders, everything is fine I tried to reproduce the behavior in my vanilla Zope 2.2.1. Not only, I was unable to do that (as I expected). I was also unable to reproduce your original "id" problem! Zope 2.2.1 apparently no longer has the bug, I analysed for Zope 2.1.6. Did you do your 2.2.1 check by exporting your site from 2.1.6 and importing it into Zope 2.2.1? If so, then probably Zope 2.2.1 is very confused by the strange Zope 2.1.6 ZClasses. Please rebuild your "theatre_class" ZClass from scratch in Zope 2.2.1 (at the same place, it is in Zope 2.1.6!). Create an instance and check whether the id bug is still present -- as I said, I do no longer see this bug. If the bug is no longer there, give your ZInstances Id's in Zope 2.1.6 (by renaming). Then export them and reimport into Zope 2.2.1 (you may try with a single one; if it works do it with all). If you still see this strange folder dependent behavior, then, you may have lost parts of your site. Maybe, DC can help you in this case as sites exported from 2.1.6 should be importable into 2.2.1. I will not analyse such an export/import problem (unless I get myself hit). If you *rebuild* your ZInstances *from scratch* in 2.2.1 (start with a few) and you continue to see the strange folder dependent behavior, you may contact me again. Obviously, such a thing should not happen. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is Squishdot ready for prime time?
Absolutely, totally. Could you be a little more specific than "use at work", that could mean anything. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 08, 2000 6:00 PM Subject: [Zope] Is Squishdot ready for prime time? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm thinking of recommending it for use at work. Is it reliable? John Holland - --- Email: [EMAIL PROTECTED] Web: http://jbhsoft.linuxave.net Public key : finger -s or http://jbhsoft.linuxave.net/pubkey.html -BEGIN PGP SIGNATURE- Version: PGP 6.5.2 iQA/AwUBObmLxhPWCCE2yAKHEQIsxgCfcl8p7PdI3WWCKGpLNboq7hfZOT4An2LL Sr8S7931nDFoBuNqkibp5mbz =S3k1 -END PGP SIGNATURE- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Icons in a product
+---[ Petr Knapek ]-- | On Fri, 8 Sep 2000 23:18:40 +1000, Andrew Kenneth Milton |[EMAIL PROTECTED] said: | | Hi Andrew, | thank you very much for quick answer but I it doesn't work because | in my __init__.py I register the product with the initialize(context) | function. It doesn't go inside your initialize function, sorry about that. It's a 'global' variable in your __init__.py etc.. misc_={ 'subagency': ImageFile('subagency.gif',globals()), #little 'SubAgencyIcon': ImageFile('SubAgency.gif',globals()), #big 'agent': ImageFile('agent.gif',globals()), 'company': ImageFile('company.gif', globals()), 'CompanyIcon': ImageFile('CompanyIcon.gif',globals()), 'client': ImageFile('client.gif',globals()), 'ClientIcon':ImageFile('ClientIcon.gif',globals()), } def initialize(context): -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How does one display document count of a folder?
[[EMAIL PROTECTED]] | I am using a script to display the contents of a folder, but I | wonder how I might display a document count of the dtml | documents in a folder? Untested: dtml-var "_.len(objectIds('DTML Document'))" 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] Get help about variable and entity of Zope.
Hi: I am troubled by a question with DTML. With DTML,I define a variable AA, and let AA equal a object's ID, HOW can I get the object's property through the variable AA? Maybe need a function? Need your help? I want to express as : dtml-call "AA.propertysheets.SUBJECT.manage_changeProperties (Name=1)" Thanks with best regards! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Import from file via management-interface
I found it very disturbing having to get my .zexp exports into the subdirectory 'import' of the server and then using the management-interface to do the actual import. I found it inconvenient, too. (Not disturbing, though.) And I had to implement my own uploading scheme via web. But as anything that is put into the file system, I thought that there must be some security reason. At least I know that's why the Extensions folder is there. Is this (existence of import folder) really a shortcoming of Zope, or is there some security reason why .zexp cannot be uploaded directly from browser? Can someone somehow write a destructive external method, and then upload it via .zexp? 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] Import from file via management-interface
you can write anything destructive, whether it is an external method, a DTML Method, or basically anything. At least if the only way you can import .zexp's is from the import directory, then only people with access to the zope file structure can import stuff...that will usually be restricted to system administrators or superuser people. terry Hung Jung Lu wrote: I found it very disturbing having to get my .zexp exports into the subdirectory 'import' of the server and then using the management-interface to do the actual import. I found it inconvenient, too. (Not disturbing, though.) And I had to implement my own uploading scheme via web. But as anything that is put into the file system, I thought that there must be some security reason. At least I know that's why the Extensions folder is there. Is this (existence of import folder) really a shortcoming of Zope, or is there some security reason why .zexp cannot be uploaded directly from browser? Can someone somehow write a destructive external method, and then upload it via .zexp? 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 ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 708 124 ICQ: 79303381 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Is Squishdot ready for prime time?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 use at work = I will recommeend using it and do the work of setting it up on an NT (ugh) box and claim it can be relied upon for a medium level (I don't know how much really) of traffic. Say aren't you guys the people who embrace and extend perl:? John Holland - --- Email: [EMAIL PROTECTED] Web: http://jbhsoft.linuxave.net Public key : finger -s or http://jbhsoft.linuxave.net/pubkey.html On Fri, 8 Sep 2000, Andy McKay wrote: Absolutely, totally. Could you be a little more specific than "use at work", that could mean anything. - - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 08, 2000 6:00 PM Subject: [Zope] Is Squishdot ready for prime time? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm thinking of recommending it for use at work. Is it reliable? John Holland - --- Email: [EMAIL PROTECTED] Web: http://jbhsoft.linuxave.net Public key : finger -s or http://jbhsoft.linuxave.net/pubkey.html -BEGIN PGP SIGNATURE- Version: PGP 6.5.2 iQA/AwUBObmLxhPWCCE2yAKHEQIsxgCfcl8p7PdI3WWCKGpLNboq7hfZOT4An2LL Sr8S7931nDFoBuNqkibp5mbz =S3k1 -END PGP SIGNATURE- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 ) -BEGIN PGP SIGNATURE- Version: PGP 6.5.2 iQA/AwUBObm93xPWCCE2yAKHEQJ38wCcDqMSHDUQxT3Vv4jQ2vjf45yl180AoOYv BEz5c6X6sImGQxOL/7BiCbqm =KAnW -END PGP SIGNATURE- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )