[Zope-dev] Re: zPoPy oid issues
[EMAIL PROTECTED] wrote: Hi, The problem is inside postgresql ! They use OID type for LOB and for table'oid, PoPy (to simplify LOB handling) detect automagically LOB and returns them to the end user who can handle them easily. I study the postgresql sources on the CVS and they haven't resolv this problem. We have to write this in the BUGS file we plan to add soon in our release. If you have any proposals to resolv this BIG problem ? I'm sorry for this but postgresql types are very confused. Best regards. So, if I understand correctly, oids are handled as large binary objects? From what I see, oids are 6 bytes in length (using SELECT length(oid)...) since they have a max value of 4 billion, that leads me to believe that only 4 bytes are used as a numeric value. So, they are really just a glorified int4 with 2 extra bytes tacked on for some reason. Anyhow, why exactly does this cause PoPy to crash? I can surely work around this problem for now, but I can certainly see cases where returning an oid would be an essential function, especially if you are working on a generalized database tool. I am certainly willing to help get this fixed. Any additional information you (or anybody) has regarding this would be greatly appreciated. Thanks for your help. -- | Casey Duncan | Kaivo, Inc. | [EMAIL PROTECTED] `-- ___ 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: SQL Alias leak....
Making the corresponding change in Results.py appears to have corrected the SQLAlias problem. I'm not exactly sure why the SQLAlias solution is any better than doing it this way. Seems less obfuscated to me. The SQLAlias is better because otherwise Record allocates 3x the memory for each record (thinking that the aliased names are distinct fields). In any case, Jim tracked this down to a subtle bug in ExtensionClass that is fixed for 2.2.5 b1 (which I'm uploading the zope.org now). 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 )
[Zope-dev] Re: zPoPy oid issues
Actually I found that the Postgres length function returns the string length (i.e. number of digits) of a number, so my previous message was wrong about the byte length of an oid. AFAIK they are 4 byte integers. I have found a way to retrieve oids without crashing Python or Zope. You must do an explicit type conversion to a 4 byte integer like so: SELECT int4(oid) FROM foo; This behaves in a much friendlier manner. I would still like to see the problem resolved, as I find the fact that an innocuous SELECT query could crash Zope a bit troubling. -- | Casey Duncan | Kaivo, Inc. | [EMAIL PROTECTED] `-- ___ 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] tuples in DTML
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael Bernstein dtml-in "External_Method(REQUEST)" dtml-var sequence-itembr /dtml-in Which (of course) displays the list as an single item along with each of the strings: ['list item 1', 'list item 2', 'list item 3'] String 1 String 2 String 3 Now, how do I iterate over the list in DTML? dtml-call REQUEST.set('the_list', External_Method(REQUEST)[0]) dtml-in the_list blah blah dtml-var sequence-item dtml-in Something like the above ought to work. Regards Max M ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Error, Exceptions.SystemError: unknown opcode
Hi all, I'm trying to insert data into a MySQL table using a SQL Method without success. Zope return me the following message: "Error, Exceptions.SystemError: unknown opcode" Any ideas? Thanks José ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] The meaning of Zope
Takashi Veikko Linzbichler wrote: Bill Welch wrote: Here's what some Americans think it means. From ARTFL Project, Webster's 1913 Unabridged at http://humanities.uchicago.edu/forms_unrest/webster.form.html Zope (?), n. [G.] (Zoöl.) A European fresh-water bream (Abramis ballerus). Which is correct. It's a fish living mostly in the danube regions and eastward of that. BTW, a lot of bones, not very delicate flesh :-( But I'm really surprised at the fact that anyone outside middle-/eastern europe ever noticed the existence of this creature :-) Paul told us at the Paris Zope conference that it was in fact a Britain word. But does anyone know the actual meaning of "Zope" in Britain ??? P.-J. ta -- smartferret it-consulting Dipl.-Ing. Linzbichler KEG Dipl.-Ing. Takashi Veikko Linzbichler Tannhofweg 28/3 A-8044 Graz, Austria Tel.: 0316 / 39 89 40 -0 Fax:0316 / 39 89 40 -20 Mobil: 0676 / 31 26 286 eMail: [EMAIL PROTECTED] WWW:http://www.smartferret.com -- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) -- If the only tool you have is a hammer, you tend to see every problem as a nail. Si le seul outil dont vous disposez est un marteau, vous avez tendance à voir chaque problème comme un clou. --Abraham Maslow ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] index_html woes + more.... :-(
Hello! I am at loss on the following problem: I have an index_html DTML-document that is only a skeleton to let me design my site around it, based on a common structure. In index_html I call various of dtml-documents and dtml-methods, like "main_pane" and "main_msg_box", etc. The idea I had (and that actually worked for some time) is that I need not implement an index_html file in every sub-folder in my zope installation, but that it would get inherited (aquired???) by all subfolders and that I only needed to make a "main_pane" method, and a "main_msg_box" document. However this is not working, anymore I might add. I cannot say what I have done wrong. The only thing I've done is to add and remove SiteRoots with SiteAccess2 (which btw i cannot make work, and has caused my zope to die abruptly, w/o leaving trace in the logs). I don't know if this is related, but i thought i'd mention it anyway. Can anybody hint me in any direction? Please? Here is my setup: Zope version: Zope 2.2.4 (source release, python 1.5.2, linux2) Python version: 1.5.2 (#4, Aug 16 1999, 15:42:53) [GCC 2.95 19990728 (release)] System Platform: sunos5 Process ID: X Running for: 22 min 27 sec Zope is running behind apache (apache + zserver). Zope from src, compiled with /usr/bin/python wo_pcgi.py (is this correct, btw?) ExternalMethod (Installed product ExternalMethod (External Method-1-0-0)) Hotfix_2000-12-08 (Installed product Hotfix_2000-12-08) Hotfix_2000-12-15a (Installed product Hotfix_2000-12-15a) Hotfix_2000-12-18 (Installed product Hotfix_2000-12-18) LoginManager (Installed product LoginManager (LoginManager-0-8-8b1)) MIMETools (Installed product MIMETools) MailHost (Installed product MailHost (MailHost-1-2-0)) NewsFolder (Installed product NewsFolder) OFSP (Installed product OFSP (OFSP-1-0-0)) PlugIns (Installed product PlugIns (PlugIns-0-4-3b1)) SiteAccess (Installed product SiteAccess (SiteAccess-2-0-0)) ZCatalog (Installed product ZCatalog (ZCatalog-2-2-0)) ZGadflyDA (Installed product ZGadflyDA) ZOracleDA (Installed product ZOracleDA) ZPatterns (Installed product ZPatterns (ZPatterns-0-4-3b2)) ZSQLMethods (Installed product ZSQLMethods) ZopeTutorial (Installed product ZopeTutorial (Zope Tutorial 1.0)) As I said, any help is appreciated. Thank you /dario - Dario Lopez-Kästen Systems Developer Chalmers Univ. of Technology [EMAIL PROTECTED] ICQ will yield no hitsIT Systems Services ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] A Picture of Zope, The Fish
Zope is no more named after a fish, much less an undistinguished fish, than python is named after a snake. I can see how you might invent a branding around coincidence, but I think we can do better. What animal is going on the O'Reilly book? Bill. On Tue, 26 Dec 2000, Takashi Veikko Linzbichler wrote: Well, I've got another picture of a zope, maybe I'll try in the next few days ... ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] ANNOUNCE: Zope 2.2.5 b1 released
Happy Holidays all, Zope 2.2.5 beta 1 has been released - you can download it from Zope.org: http://www.zope.org/Products/Zope/2.2.5b1/ This release contains a number of bug fixes, and includes all Hotfixes to date. It includes the fix for a memory leak that could occur when accessing SQL data through aliased names, a fix for a problem with contention between concurrent POST requests and a number of fixes to improve support for current WebDAV-aware clients such as Adobe GoLive. Note that this release contains a change to the ExtensionClass binary - if you are running a source release you should rebuild the Zope binaries after upgrading or applying a "diff" update. For more information on what is new in this release, see the CHANGES.txt and HISTORY.txt files for the release: http://www.zope.org/Products/Zope/2.2.5b1/CHANGES.txt http://www.zope.org/Products/Zope/2.2.5b1/HISTORY.txt Note that we have also posted "diff" updates as .tgz files that will let you easily upgrade an existing 2.2.x site. These updates are available for those currently using the 2.2.x source release or the 2.2.x binary releases. To apply a differential update to your site: - download the appropriate .tgz file from zope.org - shutdown your Zope process - copy the .tgz to your Zope directory and extract it - run w_pcgi or wo_pcgi *if you are not using a binary release* - restart your process Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] is it possible to import from Excel
Gadfly is a distinct product, www.chordate.com/gadfly.html, so you can, at least, write python to insert data directly into gadfly. You can get the data out of Excel through COM or export to csv. Bill. On Wed, 27 Dec 2000, K H Subrahmanyan wrote: Now we have developed some database using gadfly in zope. Actually there are some datum which are there in Excel. I would like to know is it possible to import all that datum from Excel to zope database, instead of giving all the data to zope manually. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SiteAccess / SUPPRESS_ACCESSRULE bad (urgent)
Sounds like something's wrong with your apache conf. Please show us what that looks like. I'm running a similar setup on Debian, too, and it works fine. Bill. On Wed, 27 Dec 2000, Edwin Martin wrote: Hello, I'm running an Zope website behind an Apache proxy. Because Zope is running on port 9673, some links pointed to this port and the URL showed mydomain:9673... ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] SiteAccess / SUPPRESS_ACCESSRULE bad (urgent)
Hello, I'm running an Zope website behind an Apache proxy. Because Zope is running on port 9673, some links pointed to this port and the URL showed mydomain:9673... To prevent this, I installed SiteAccess and I put a SiteRoot in the root of my Zope web. I entered: Base: http://www.mydomain.nl/ Path: / Since then I can't access http://www.mydomain.nl/manage. I do get the password-box and frames, but both frames show 'Not Found'. Not Found The requested URL //manage_workspace was not found on this server. Opening the frame in a new window and removing the second / doesn't solve the problem. I looked up the docs of SiteAccess and found setting a environment variable and restarting Zope would help. So I tried that: # SUPPRESS_ACCESSRULE=1;export SUPPRESS_ACCESSRULE # env ... shows SUPPRESS_ACCESSRULE=1 ... # /etc/init.d/zope restart Restarting Zope... done. Unfortunately, the problem is still there. Anybody knows an answer to my problem? I really hope so, it's a live site! Bye, Edwin Martin. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] standard_error_message woes!
* Jason Byron ([EMAIL PROTECTED]) [001223 01:04]: There are two files: /lib/python/ZPublisher/HTTPResponse.py /lib/python/OFS/Application.py that contain error pages hard coded in. you get the HTTPResponse.py code for errors like: 403: 'Forbidden', 404: 'Not Found', 405: 'Method Not Allowed', stuff like that. This error code is not parsed like normal dtml and so you can't simply replace it with: """dtml-var standard_error_message""" I think this is because these are standard error codes that have to do with the web server and they must work even if the object database doesn't. There must be a more detailed reason why these errors aren't connected to the db, but someone else will have to answer that one. :) Well I'm very tempted to start mucking in and letting it call an 'external' python method of some sort. At the very least, I'd like the page to be able to look up a list of 'words' and redirect to a webpage if it matches Like: http://site.org/fish It finds the keyword fish, and sees there is a legit URL: http://site.org/software/beta/fish And redirects it. But that'd need t ZCatalog at least. G. Ciao! -- Chemist who falls in acid is absorbed in work. The Doctor What: Second Baseman http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] tuples in DTML
Max M wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael Bernstein dtml-in "External_Method(REQUEST)" dtml-var sequence-itembr /dtml-in Which (of course) displays the list as an single item along with each of the strings: ['list item 1', 'list item 2', 'list item 3'] String 1 String 2 String 3 Now, how do I iterate over the list in DTML? dtml-call REQUEST.set('the_list', External_Method(REQUEST)[0]) dtml-in the_list blah blah dtml-var sequence-item dtml-in Something like the above ought to work. Mmm, It doesn't seem quite right. If I do it that way, I'll have to run the external method more than once, and it's a relatively expensive method. I'm opening an HTTP connection and processing the page to extract the data that is getting put into the tuple. What if I do: dtml-call "REQUEST.set('the_tuple', External_Method(REQUEST))" dtml-call "REQUEST.set('the_list', the_tuple[0])" dtml-in the_list bdtml-var sequence-item/bbr /dtml-in dtml-var "the_tuple[1]"br dtml-var "the_tuple[2]"br dtml-var "the_tuple[3]"br Ok, this works! Thanks for the help, Michael Bernstein. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 eating CPU/RAM - how do I find the culprit?
Our production Zope machine has developed a habit over Christmas where it starts eating CPU and RAM (one Python thread on 100% CPU time, and I've seen kernel messages indicating that Zope was killed because it hit an out-of-memory condition which means it sat on ~500Mb RAM). I'm completely in the dark about what causes this (probably some of my own code, I installed some new bits a couple of days ago), but what's worse: I really don't know how to set about finding the problematic code. Is there a way to find out what code a thread is running? -- Cees de Groot http://www.cdegroot.com [EMAIL PROTECTED] GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] next record in IN TAG
How can I jump to the next record within IN TAG ? Thanks Anderson ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SiteAccess / SUPPRESS_ACCESSRULE bad
Bill wrote: Sounds like something's wrong with your apache conf. Please show us what that looks like. I'm running a similar setup on Debian, too, and it works fine. Fortunately, I have solved the problem myself. Thanks for everybody for looking into my problem. For the curious: In the apache httpd.conf I made a proxy to the Zope web, except for the home page '/'. Because in the SiteRoot I pointed the '/' as the root, so http://www.mydomain.nl:9673/SiteRoot/manage_main points the Zope management form to '/'. Because there's no Zope at '/', deleting the SiteRoot from Zope management failed. Changing in apache httpd.conf the / to ..:9673 solved this. Thanks, Edwin. --- The world is moving so fast these days that the person who says it can't be done is generally interrupted by someone doing it. -- Harry Emerson Fosdick Surf Edwin Martin's brainwaves: http://www.bitstorm.org/edwin/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Example activity-explicit workflow system
For those interested in workflow systems and workflow within Zope, the following workflow system may be useful to try out. It models workflow steps explicitly and a workflow becomes a graph with a visual editor. I have been meaning to send along some resources in this area I have been accumulating. The Endeavors group at UCI developed this and the peer-to-peer system they built, Magi, is now at www.endtech.com as open source. They are still developing the workflow product but an early prototype you can download and play with is at: http://www.ics.uci.edu/pub/endeavors/endeavors.html See also the papers and the web-based workflow thesis at: http://www.ics.uci.edu/pub/endeavors/docs/papers/ There was discussion of graphical system to present workflow. I have looked at several, including the AtT stuff. When I have time, I will send a separate email with some that I have found. One thing to look at which is ActiveX based at the moment is http://www.lassalle.com/ A general purpose Flowcharting/Diagramming ActiveX control. I am very interested in a general, fairly full featured workflow system on top of Zope as opposed to using an external workflow product for a fundamental reason. While one could come up with a way of getting what I need with an external system, it would be messy. I need workflows to be explicit and versioned. We make use of ZODB to version content that end users generate. We don't make use of Zope's versioning but use or own hierarchical version tree which is easy to do in Zope. End users generate new workflows and revisit past workflows. The user sees this versioning as notebook pages using a scientific notebook metaphor. It is much cleaner to use ZODB and ZPublisher to do all this instead of having a version tree in Zope and a bunch of correspondences to outside objects in an external workflow system. Thus, there is a lot of value in having a fairly general workflow system whose representation and publishing uses ZODB and ZPublisher. There seems to be a principle here on how to layer systems correctly on top of ZODB and ZPublisher or any persistant-object web publishing system. One way is very clean and simple and other ways are nightmares. Regards, Albert Boulanger [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZOPE PTK
Hey everyone I am tring to istall the Portal Toolkit The following is the known bug in the PTK's documentation == Known Bugs There is something screwy going on with some of the DemoPortal's ZClasses. The PortalWizard will sometimes appear 'Broken' immediately after installing PortalWizard. Sometimes simply clicking on the 'Contents' view of the 'DemoPortal' product two or three times will solve this, though usually an additional restart is required. == The solution does not seem to be working for me. I have a older version running at home. But I can't get this version install here at work. the error I get is === Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: __call__ === Any suggestions? Mohan. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 it possible to import from Excel
On Wednesday 27 December 2000 17:30, K H Subrahmanyan wrote: Hello, Now we have developed some database using gadfly in zope. Actually there are some datum which are there in Excel. I would like to know is it possible to import all that datum from Excel to zope database, instead of giving all the data to zope manually. Actually all those data are the Emp. records. Currently they are maintaining it in Excel. Now they want to make it web based stuff. We have developed a tool for that. Since all that data are there in Excel I wanted some stuff to import that. Hoping your reply. Well... firstly, moving from a spreadsheet to a db is probably a very good move, in the case of employment records. As for how to go about it... I would recommend you export the Excell data in a comma or tab delimited text file, then write a Python Method (or Script, whichever you have) to munge each line and store it in the db. bye yours subrahmanyan. Have a better one, Curtis Maloney ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] next record in IN TAG
On Thursday 28 December 2000 07:17, Anderson Ami wrote: How can I jump to the next record within IN TAG ? Do you mean like a "next" in basic, or "continue" in C? If so, I'm pretty sure there is no such thing, and you just have to synthesize it with dtml-if/dtml-unless tags. Thanks Anderson Have a better one, Curtis Maloney ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope install - cannot login
Here is a problem I'm encountering while installing Zope through PCGI : I can get the first screen but can't log into management screen with "superuser" and "123" Yet it works perfectly with ZServer installation instead of PCGI installation I have tried all sorts of combinations with file /var/zope/access, no success As error messages, at first I got """ Traceback (innermost last): File "z2.py", line 554, in ? exec "import "+MODULE in {} File "string", line 1, in ? File "/usr/share/zope/lib/python/Zope/__init__.py", line 110, in ? DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName) File "/usr/share/zope/lib/python/ZODB/FileStorage.py", line 262, in __init__ lock_file(f) File "/usr/share/zope/lib/python/ZODB/lock_file.py", line 101, in lock_file raise error, ( ZODB.POSException.StorageSystemError: Could not lock the database file. There must be another process that has opened the file. p "" then nothing at all And if I try python z2.py I get the answer """ Traceback (innermost last): File "z2.py", line 524, in ? import ZServer ImportError: No module named ZServer """ Can you help me ? -- Odile Bénassy http://www.libresoftware-educ.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] Z-Commerce components
Hi Looking for an e-commerce tool to use for a Zope-based site for artists to share, display and sell 'net art' and more. Also to allow sponsors to do just that. Thus it will not typically have huge throughput traffic like a commercial site selling books or whatever, but on the other hand, must work smoothly enough to allow ticket sales for small concerts/events etc. The more artists/musicians/venues can use i, the lieklyier all will succeed. 1. What do you recommend for taking credit card purchases online with Zope? 2. Does Zope even have anything to do with this this part of the design problem? Thanks for any comments - Jason ___ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] can't change zclass meta type
I can't seem to completely change a zclass meta type. When I make a change on the "basic" tab of the zclass, my change seems to take, and the new meta type is displayed in the form. But when I try to add an instance of this metatype, I still see the old meta type name in the dropdown. When I try to reference objects by metatype in my code, the new name does work, so it appears that the new metatype is ... mostly ... applied. Is this a bug? Or is the some other location where I also need to change this info? -- Geoffrey L. Wright Developer / Systems Administrator (907) 563-2721 ex. 4900 http://www.integritysi.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] inserting half a dtml tag into a zclass
OK, I'm sorry for the wierd title, but I can't really describe what I want to say very easily in one line. Basically, my problem is this; - I have a zclass called DEHS with catalog_aware and dtml_document as base classes. - DEHS instances have a selectable property of public/private. - I want to be able to make it so that if the property is set to 'private', then only people on a particular network may access it. So, here is what I have done (and it works), dtml-call "REQUEST.set('available', 0)"dtml-if "propertyLabel(availability) == 'private'"dtml-call "REQUEST.set('available', 1)"/dtml-if dtml-call "REQUEST.set('dom', _.string.split(REQUEST.REMOTE_ADDR, '.'))"dtml-if "dom[0] == '192'"dtml-if "dom[1] == '168'"dtml-call "REQUEST.set('available', 0)"/dtml-if/dtml-if dtml-if "available == 1"dtml-in PARENTSdtml-let PARENT="_.getitem('sequence-item')"dtml-if "PARENT.hasProperty('dehs_site_root_folder')"dtml-call "REQUEST.set('restricted', PARENT.absolute_url())"/dtml-if/dtml-let/dtml-indtml-call "RESPONSE.redirect(restricted+'/restricted.html')"dtml-else dtml-var standard_html_header dtml-var standard_html_footer/dtml-if So, what's the problem I hear you ask. Well, I don't really want all this code to be visible (or breakable) in every DEHS instance. What I would really like to do is have this, dtml-var privacy dtml-var standard_html_header dtml-var standard_html_footer /dtml-if where, dtml-var privacy is just all of the code that I have above s_h_h.However, zope will not let me do this because I end up with a dtml-if thatis missingits closing tag, and one that does not have an opening tag. I realise that I there are products already designed with the sort of functionality I am after built in, but I will not have much influence on the products that will be available on the server that this site will end up on... which is why I'm doing it in this way. Any input is much appreciated. cheers tim
Re: [Zope] is it possible to import from Excel
When on a windows platform, I prefer to define an ODBC datasource on the excel spreadsheet, write ZSQL method that selects the fields to be imported, write a DTML method that iterates on returned records and call another ZSQL method that writes into Gadfly. You may need to handle None/Missing values to prevent from ending up in gadfly as 'None' etc. Ayhan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )