[Zope] data record exceeds transaction record
Title: Blank Hi, here is the information of my problem: File "C:\Program Files\WebSite\lib\python\ZODB\FileStorage.py", line 218, in panic raise CorruptedTransactionError, messageZODB.FileStorage.CorruptedTransactionError: C:\Program Files\WebSite/var/Data.fs data record exceeds transaction record at 20663057 that's special, see, if you analyse the sentence: data record exceeds transaction record it's like saying: you transfered more data than the quantity(of data) you have presently. " I will transfer 5 apples, but I have only 4 apples." hmm interesting problem to fix. some ways I got from you: the "recover" program with Zope 2.2, but I didnot find out why it should be useful for me. When I read the "readme file". or use tranalyzer.py but I didnot find any product like that, neither any file on my computer with the lastest zope, only a small article: http://yyy.zope.org/Members/vernier/recovery In my netscape browser, I can read: "exceptions.ImportError" then I read all the message related to this problem, in every mailing list, but there is no solution to it, or related to it on those messages. Is it a new bug or ? Because my website is very big. I don't think it's very important because there is some other data.fs more bigger than 31 381 Ko. It's not a server or a hardware problem because I tested my data.fs on another hardware,machine. As well as it's not a another file in zope, because I tested that data.fs on zope linux, and zope windows. So it's really inside data.fs here are the source: --2000-07-11T06:23:17 PANIC(300) ZODB FS FS21 ERROR: C:\Program Files\WebSite/var/Data.fs data record exceeds transaction record at 20663057 Traceback (innermost last): File "C:\Program Files\WebSite\z2.py", line 554, in ? exec "import "+MODULE in {} File "", line 1, in ? File "C:\Program Files\WebSite\lib\python\Zope\__init__.py", line 110, in ? DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName) File "C:\Program Files\WebSite\lib\python\ZODB\FileStorage.py", line 298, in __init__ ltid=ltid, start=start, maxoid=maxoid, File "C:\Program Files\WebSite\lib\python\ZODB\FileStorage.py", line 1602, inread_index name, pos) File "C:\Program Files\WebSite\lib\python\ZODB\FileStorage.py", line 218, in panic raise CorruptedTransactionError, messageZODB.FileStorage.CorruptedTransactionError: C:\Program Files\WebSite/var/Data.fs data record exceeds transaction record at 20663057 C:\Program Files\WebSite> Very truly yours, Jonathan Desp <><><><><><><><><><><><><><>AtomasoftMatter will become Softwarehttp://www.atomasoft.com<><><><><><><><><><><><><><>
[Zope] --- In zope@egroups.com, Paul Abrams wrote:
Title: Blank --- In [EMAIL PROTECTED], Paul Abrams <[EMAIL PROTECTED]> wrote:> I'm noticing that our file sizes could be reduced by 10% or> more by trimming trailing whitespace. Is there a way to get> Zope to do that automatically? It would be best if Zope did> it whenever a method was saved.> > Thanks in advance,> -Paul You can go on the Control Panel > Database > click "Pack" and you will get more space, as well as in the cache sections. Very truly yours, <><><><><><><><><><><><><><>Jonathan DespAtomasoftMatter will become Softwarehttp://www.atomasoft.com<><><><><><><><><><><><><><>
[Zope] dtml-in and maps...
Greetings, This seems like it should be a simple thing but I can't seem to find how to make dtml-in behave with maps. In particular, empty maps. I've tried mapping, i've tried testing _.len(map.keys()), and various other things. But it always fails, telling me Error Type: KeyError Error Value: 0 What am I missing? Have a better one, Curtis. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] trailing whitespace optimization
On Tue, 11 Jul 2000, Paul Abrams wrote: > I'm noticing that our file sizes could be reduced by 10% or > more by trimming trailing whitespace. Is there a way to get > Zope to do that automatically? It would be best if Zope did > it whenever a method was saved. Agreed. I have found that reformatting can save much space. However, sometimes you might actually WANT those spaces there. I know, HTML is supposed to ignore whitespace, but there could be various reasons you would want to keep trailing spaces. Really, your best solution is to stop being to slack, and remove the spaces yourself! (o8 > > Thanks in advance, > -Paul > 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] trailing whitespace optimization
I'm noticing that our file sizes could be reduced by 10% or more by trimming trailing whitespace. Is there a way to get Zope to do that automatically? It would be best if Zope did it whenever a method was saved. Thanks in advance, -Paul __ Do You Yahoo!? Get Yahoo! Mail Free email you can access from anywhere! http://mail.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] exceptions.ImportError
Title: Blank Hi, I read all the past message in your mailing lists with the keyword:exceptions.ImportError in. I'm getting that problem:exceptions.ImportError Anyone is able to help me ? You know a way to fix it ? a patch or something ? Just email me at mailto:[EMAIL PROTECTED]
[Zope] MessageDialog
The MessageDialog is cool, but a little sparse, has anyone tried overriding it with their own or fiddling with it? Im looking at including standard header and footer in it and not gotten very far. Thanks. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Adding comments to documents like in ACS ...
This is something I've wanted to see for a long time too. The Portal Toolkit (http://www.zope.org/Products/PTK) evidently has a "discussable" mixin class that allows users to add comments to documents. You may want to check it out. This feature should probably be abstracted out of the portal toolkit and made more generally available. I'd really like to see a "commentable document" product based on an atomic mixin class that we could reuse on Zope.org for how-tos, news items, etc. I really like ACS' "bboard" system, that's the kind of functionality I think these objects should provide. I wish I had time to write this. > -Original Message- > From: Ramarao Kanneganti [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 10, 2000 9:36 PM > To: [EMAIL PROTECTED] > Subject: [Zope] Adding comments to documents like in ACS ... > > > Hi, > > I am a long time ACS (Arsdigta Community System) user. I am > checking out > Zope recently and am impressed with its management Interface. > > One thing that I miss from Zope is the ability to add comments to > existing documents by all the readers of the document. Does anybody > know a product that does it? Or, can one write one and pass it > on to me:-)? > > Since I do not read this high volume list regularly, can you please > CC me if you have any suggestions? > > Thanks, > Rama > > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** 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] DTML?
On Mon, 10 Jul 2000, Chris Withers wrote: > (Who just spent 1/2 hour figuring out how to do a multi-language site in > Zope, and now after 6hrs of trying has given up doing a recursive tree > copy to get the old site into the new structure with a DTML method or > two and is resorting to ugly hacky external methods because Python > Methods arent' around/stable) This probably isn't what you want to hear, but doing it in Python rather than DTML was probably the Right Choice to start with. A tree copy is a programming task, not a presentation task, and DTML is (supposed to be ) for presentation not programming. Which doesn't mitigate against any of your comments about DTML being in poor shape... --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 )
[Zope] Adding comments to documents like in ACS ...
Hi, I am a long time ACS (Arsdigta Community System) user. I am checking out Zope recently and am impressed with its management Interface. One thing that I miss from Zope is the ability to add comments to existing documents by all the readers of the document. Does anybody know a product that does it? Or, can one write one and pass it on to me:-)? Since I do not read this high volume list regularly, can you please CC me if you have any suggestions? Thanks, Rama ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] SV: [Zope] Document Title
You must be thinking of this: - Original Message - From: Terry Babbey <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 10, 2000 9:04 PM Subject: [Zope] Document Title > I am trying to get a document title to print out and am having > problems. > > As part of my web page I would like to display the title of a > document, and the document id is stored in a variable. But Zope is > interpretting the information in the variable as a string and not as a > document id. > > Any ideas, > Terry > > -- > __ > Terry Babbey > Technical Support Specialist > Lambton College, Sarnia, Ontario, Canada > __ > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** 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] Mirroring to IIS
:) I actually rewrote a *ahem* Perl script to do it. - Original Message - From: "Jake LeBeau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 10, 2000 1:45 PM Subject: Re: [Zope] Mirroring to IIS > Hi Maik, > > I've been trying to use the ZMirror product and wget with varying degrees of success. See my response to Andy McKay for a description of where I am now. > > Of course, if I was a real Zopista, instead of a newbie, I would rewrite the ZMirror product to assign file extensions to its output, right? > > Thanks for your help, > > Jake <[EMAIL PROTECTED]> > > >>> Maik Roeder <[EMAIL PROTECTED]> 07/10/00 12:40PM >>> > Hi Jake ! > > Jake LeBeau wrote: > > I'm attempting to mirror our Zope site to IIS 5.0 on a W2K Server, > >and am having problems with Netscape Navigator. Because the files have > > no file extension, Netscape keeps trying to download and save the > >files to disk, rather than displaying the content as HTML. I've tried > >several ways of specifying that the MIME content type header coming > >from the server is "text/html", but nothing alters the behavior of > > Netscape. Is there anyone else out there who may have had experience > > with this and would be willing to help? Any advice would be appreciated. > > Try using a mirror tool like w3mir. Folders like http://localhost/w3mir/ will be mirrored > to a folder: > > w3mir/ > > and an index.html file inside: > > w3mir/index.html > > Hope this helps. > > Regards, > > Maik Röder > > -- > "The computing future is based on "cyberbodies" - self-contained, > neatly-ordered, beautifully-laid-out collections of information, > like immaculate giant gardens." The second coming - A manifesto. David > Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help with ZPoPyDA
> > > > Failed to authenticate client as Postgres user 'bob' using > > > authentication type>: be_recvauth: unrecognized message type: 131072 > > > > > Can psql on the linux connect to the postmaster on the sparc? Nope, i get the error mentioned above when trying to connect with psql. > My best guess: you need to build new postgres on both machines. For > locking performance, you certainly want a more recent version of postgres, > anyway! The version you have almost certainly does table level locking. > You are going to have to rebuild the sparc's copy. And dump and restore > may get to be 'interesting'. Yes, this is what Im going to do. From what I can tell, the postmater running on the sparc machine does not support the -i option. This will probably break a lot of stuff, including the tcl/tk interface that relies on this old postgres... oh well. thanks for your help. nitesh ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help with ZPoPyDA
On Mon, Jul 10, 2000 at 05:39:27PM -0500, Nitesh Dhanjani wrote: > > > On Mon, 10 Jul 2000 [EMAIL PROTECTED] wrote: > > > On Mon, Jul 10, 2000 at 01:42:48PM -0500, Nitesh Dhanjani wrote: > > > > > > > > > > > > > > > On Mon, 10 Jul 2000, Sebastien Douche wrote: > > > > > > > Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: > > > > # Im trying to access a postres database from within zope. I have > > > > # ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. > > > > # > > > > # The connection string Im using is something like: > > > > # user=thierry host=myhost dbname=test port=5432 password=mypassword > > > > > > > > > > Yes I know its an example, but did not want to post host+user info to the > > > entire mailing list. > > > > > > I cannot seem to connect to the postgres database using psql, and get: > > > Failed to authenticate client as Postgres user 'bob' using > > authentication type>: be_recvauth: unrecognized message type: 131072 > > > > > > so its probably not a problem with ZPoPyDA. If anyone has come across this > > > error or might know of a solution, please let me know. > > > > Could you please post a bit more information: > > > > platform postgres is running on: > SunOS 5.6 Generic_105181-19 sun4m sparc SUNW,SPARCstation-20 > > Client (zope and psql) running on Linux 2.2.16 i686 > > > postgres version: > The person who installed postgres on the sparc machine isnt around > anymore, im still trying to figure this out. The postmaster or postres > executable do not have a "-v" or "-V" option that spits out the version. > > The client side psql is 6.5.3 Can psql on the linux connect to the postmaster on the sparc? (If I am right about the postmaster supporting only unix domain sockets, it should not.) > > > > > are internet domain sockets enabled on postgres: > I usually startup postgres like this "postmaster &", and was told to > start it up with the -i switch. However postmaster doesnt seem to accept > that switch: > % postmaster -h > usage: postmaster [options..] > -a authsys do/do not permit use of an authentication system > -B nbufsset number of shared buffers > -b backend use a specific backend server executable > -d [1|2|3] set debugging level > -D datadir set data directory > -m start up multiplexing backends > -n don't reinitialize shared memory after abnormal exit > -o option pass 'option' to each backend servers > -p port specify port for postmaster to listen on > -S silent mode (disassociate from tty) > -s send SIGSTOP to all backend servers if one dies OK, you are dead in the water at this point...you can use only Unix domain sockets and PoPy needs internet domain sockets. (Unix domain sockets can only talk when both client and server are on the same machine.) > > > > > > was PoPy compiled locally: > yes, but this shouldnt matter, all im trying to do now is connect to a > postgres database using psql. It does matter for this reason: libpq changed between the 6.3 series and the 6.5 series. A client compiled against a newer libpq cannot connect to a postmaster compiled against the older libpq. I know that the version distributed by mixadlive.com was compiled with the new libpq. > > > > > are multiple versions of postgres residing on your db host: > nope > My best guess: you need to build new postgres on both machines. For locking performance, you certainly want a more recent version of postgres, anyway! The version you have almost certainly does table level locking. You are going to have to rebuild the sparc's copy. And dump and restore may get to be 'interesting'. > thanks! > nitesh > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** 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] DTML?
Shane Hathaway wrote: > The idea of making an XML compliant DTML has been tossed around > before. It would remove the difference between and > , since XML allows neither syntax. :-) I'm not too hot on XML compliancy, but if it makes the problems I mentioned go away, then great :-) > > 3. Good documentation (much easier to do if 1 and 2 are met...) > > How about a "namespace inspector"? It could provide an easy way to > find out what methods are available and the what the calling > conventions are (since it would interface with the help system), and it > could be automatically invoked when exceptions occur (under certain > conditions), making it a Zope debugging tool. Sounds interesting but it's never going to beat a decent paper reference with examples... > I'm working on enhancing Python Methods right now. I'm close to > getting them properly interfaced with DTML namespaces, so that DTML can > invoke Python Methods using simpler DTML syntax. Hmmm, how about just sorting out the problems: dtml-var and dtml-call should really be: ...IMNSHO ;-) > A curious paradox: newbies need it to be easier, but experienced users > need consistency. I don't see a paradox, these two are both solved by sorting out the same problems. > It doesn't confuse Jim! ;-) So lobotomize Jim, then he'll know what it's like for the rest of us! :P Yes, but if Jim is the only person who understands it, then no-one else will be able to use it, DC will have no customers and we'll all be building sites using CORBA, beans and otehr 'things' Thanks for the comments though, Ethan metnioned this as a project for dev.zope.org. I'm really up for that, would you be able to help out? 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] Help with ZPoPyDA
On Mon, 10 Jul 2000 [EMAIL PROTECTED] wrote: > On Mon, Jul 10, 2000 at 01:42:48PM -0500, Nitesh Dhanjani wrote: > > > > > > > > > > On Mon, 10 Jul 2000, Sebastien Douche wrote: > > > > > Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: > > > # Im trying to access a postres database from within zope. I have > > > # ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. > > > # > > > # The connection string Im using is something like: > > > # user=thierry host=myhost dbname=test port=5432 password=mypassword > > > > > > > Yes I know its an example, but did not want to post host+user info to the > > entire mailing list. > > > > I cannot seem to connect to the postgres database using psql, and get: > > Failed to authenticate client as Postgres user 'bob' using > authentication type>: be_recvauth: unrecognized message type: 131072 > > > > so its probably not a problem with ZPoPyDA. If anyone has come across this > > error or might know of a solution, please let me know. > > Could you please post a bit more information: > > platform postgres is running on: SunOS 5.6 Generic_105181-19 sun4m sparc SUNW,SPARCstation-20 Client (zope and psql) running on Linux 2.2.16 i686 > postgres version: The person who installed postgres on the sparc machine isnt around anymore, im still trying to figure this out. The postmaster or postres executable do not have a "-v" or "-V" option that spits out the version. The client side psql is 6.5.3 > > are internet domain sockets enabled on postgres: I usually startup postgres like this "postmaster &", and was told to start it up with the -i switch. However postmaster doesnt seem to accept that switch: % postmaster -h usage: postmaster [options..] -a authsys do/do not permit use of an authentication system -B nbufsset number of shared buffers -b backend use a specific backend server executable -d [1|2|3] set debugging level -D datadir set data directory -m start up multiplexing backends -n don't reinitialize shared memory after abnormal exit -o option pass 'option' to each backend servers -p port specify port for postmaster to listen on -S silent mode (disassociate from tty) -s send SIGSTOP to all backend servers if one dies > > was PoPy compiled locally: yes, but this shouldnt matter, all im trying to do now is connect to a postgres database using psql. > > are multiple versions of postgres residing on your db host: nope thanks! nitesh ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] ZWiki/Structured Text formatting surprise
Jim Fulton wrote: > I suggest that, since this appeared in a code snippit to begin > with, it should have been written as: > > blah blah '(_.None,_,foo)' blah blah I don't format my code like that ;-) > Note that the StructuredText underlining feature is > widely considered a missfeature and probably won't be supported > in StructuredTextNG. Hmm, it could be useful though... > > I'd prefer to see a generic way of escaping structured text formatting. > > > > Maybe this is something for StructuredTextNG? > > Maybe. I'd really prefer that this not be necessary. I think escapign is always going to be necessary for something like this... ;-) > If you do, please suggest an escaping syntax. Please > think hard to come up with an escaping syntax that I don't hate. ;) How about extending ! beyond just escaping WikiNames? ! escapes structured text if it directly precedes a formatting character. !! actually puts a ! if it does indeed need to proceed a formatting character. cheers, Chris PS: Off to the wiki now ;-) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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?
Hi! > Brian Lloyd wrote: > > > This is one of the things on my List Of Evil Things that > > should be changed one day in Zope3K :) > > > > How about the nasty hacky mess that is DTML? > > Some priceless artifacts that need to go: > > > > > What is this supposed to do?! > and maybe > Not to mention the horribleness that is and . > > There's dtml-tree too, but hopefully I'm going to land very hard on that > tomorrow and beat it into something like a decent shape ;-) > > While I'm at it, how about some docs for the manage_* methods in the > interfaces Wiki? > > > > Okay, seriously, DTML is really hurting Zope's chances with a lot of > people/companies. DTML should be easier than, say, creating a Form in > Lotus Notes or writing a component in Mason. That requries, IMHO: > 1. Clear definition of when it should be used. > 2. A clean, concise syntax (like Python, DTML is more like Perl right > now ;-) > 3. Good documentation (much easier to do if 1 and 2 are met...) > > I also think having Python Methods ship with Zope would really help... Actually I also like it more to code stuff in Python. It's so much easier than to figure out how to do it in DTML. Basically what I like in Zope is the environment you also have in Python Products, like Acquisition. This is quite handy. That's why I try to do most stuff in Python Products then in DTML. But actually this is not one of the main things which were thought about a lot as it's still not that easy to use Products as ZClasses (and be it only the managing of Products.. You might want to have different locations for different products etc. ) And another thing I don't like about DTML is the mixture between code and layout. IMHO this is a bad thing. This is also the reason why I switched from PHP to Python some time ago.. What I would think as more useful is to provide some custom tags by the website developer which the website designer can then use. These should be abstract and clear in meaning. The actual implementating of these tags could then be done separately in maybe Python.. (we had this before.. maybe the XML stuff can help here). The advantage would also be that you can provide quite powerful tags like an easy handling of database forms, etc. (I did this some time ago with pure python.. developing with it is quite fast. One day and you have your basic database frontend with some basic CMS stuff.) But nevertheless for basic tasks a good template language is neccessary. And I agree with Chris that things like the above mentioned make it not that usable/readable. > There are niggles (like the rediculous id problem) which you can live > with, but doing anything other than the really mundane in DTML means > extreme hair loss right now, which is not good. > > I wonder how many other people would agree with me: nevermind ZEO, or > the PTK, ZPatterns or any new fancy functionality. Can we at least have > a decent template language that doesn't confuse the hell out of newbies > and oldbies alike... yep. > PS: Zope: yes it makes the hard things very easy, but it makes the easy > things very hard, so it all balances out nicely... ;-) :) -- christian ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Sorting a list
RC Compaan writes: > I have a list: > mylist=[('R',31),('I',80),('A',80),('S',23),('E',35),('C',21)] > > I want to rebuild the list sorted from high to low on the sequence-item. > > When i call the list gets > sorted on the sequence-key not the sequence-item. As I understand the > alphabetical characters are the sequence-keys and the float values are the > sequence-items. > > Where do misunderstand? What you see is caused by the following code in "DocumentTemplate.DT_In.InClass.__init__": if has_key('sort'): self.sort=sort=args['sort'] if sort=='sequence-item': self.sort='' This means, "dtml-in sort=sequence-item" does not sort by "sequence-item" but by the complete tuple (key,item). I think, the special treatment of lists of pairs is altogether a slight misfeature. It would probably have been better to use a special "dict" attribute in analogy to the "mapping" attribute to call for the special pair interpretation. 'sequence-item' should then still be the complete item and 'sequence-value' the second pair component. Probably, it is too late by now to change this. 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] C:\Program Files\WebSite>"C:\Program Files\WebSite\bin\python.exe"
Jonathan DESP writes: > I'm getting a problem, I don't understand what it is, my friend and me > didnot find the problem too. > > > > raise CorruptedTransactionError, message > ZODB.FileStorage.CorruptedTransactionError: C:\Program > Files\WebSite/var/Data.fs > data record exceeds transaction record at 34224435 > > C:\Program Files\WebSite> Your "var/Data.fs" is corrupted. You could use the "tranalyser" product (-> zope.org) to analyse your file and fix it. 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] Zsql_method doesnt work
Mario Premke writes: > I have the ZSQL-Method: > arguments : login > > select user_passwd as real_password > from users > where users.user_login= > > when I now press "change and test" and insert a valid login into > the Login-field I get: > > Error, Missing Input: Missing input variable, login Your query template does not see the argument "login". Are you sure, you did write the argument correctly? You know, Zope is case sensitiv. If it is not wrong, then maybe, this is one of the Zope 2.1.6 Z SQL method bugs. Look in the collector (URL:http://classic.zope.org:8080/Collector) for a patch. 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] DTML?
Chris Withers wrote: > Okay, seriously, DTML is really hurting Zope's chances with a lot of > people/companies. DTML should be easier than, say, creating a Form in > Lotus Notes or writing a component in Mason. That requries, IMHO: > 1. Clear definition of when it should be used. > 2. A clean, concise syntax (like Python, DTML is more like Perl right > now ;-) The idea of making an XML compliant DTML has been tossed around before. It would remove the difference between and , since XML allows neither syntax. :-) > 3. Good documentation (much easier to do if 1 and 2 are met...) How about a "namespace inspector"? It could provide an easy way to find out what methods are available and the what the calling conventions are (since it would interface with the help system), and it could be automatically invoked when exceptions occur (under certain conditions), making it a Zope debugging tool. > I also think having Python Methods ship with Zope would really help... I'm working on enhancing Python Methods right now. I'm close to getting them properly interfaced with DTML namespaces, so that DTML can invoke Python Methods using simpler DTML syntax. > There are niggles (like the rediculous id problem) which you can live > with, but doing anything other than the really mundane in DTML means > extreme hair loss right now, which is not good. A curious paradox: newbies need it to be easier, but experienced users need consistency. > I wonder how many other people would agree with me: nevermind ZEO, or > the PTK, ZPatterns or any new fancy functionality. Can we at least have > a decent template language that doesn't confuse the hell out of newbies > and oldbies alike... It doesn't confuse Jim! ;-) Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] DTML?
Brian Lloyd wrote: > This is one of the things on my List Of Evil Things that > should be changed one day in Zope3K :) How about the nasty hacky mess that is DTML? Some priceless artifacts that need to go: What is this supposed to do?! Not to mention the horribleness that is and . There's dtml-tree too, but hopefully I'm going to land very hard on that tomorrow and beat it into something like a decent shape ;-) While I'm at it, how about some docs for the manage_* methods in the interfaces Wiki? Okay, seriously, DTML is really hurting Zope's chances with a lot of people/companies. DTML should be easier than, say, creating a Form in Lotus Notes or writing a component in Mason. That requries, IMHO: 1. Clear definition of when it should be used. 2. A clean, concise syntax (like Python, DTML is more like Perl right now ;-) 3. Good documentation (much easier to do if 1 and 2 are met...) I also think having Python Methods ship with Zope would really help... There are niggles (like the rediculous id problem) which you can live with, but doing anything other than the really mundane in DTML means extreme hair loss right now, which is not good. I wonder how many other people would agree with me: nevermind ZEO, or the PTK, ZPatterns or any new fancy functionality. Can we at least have a decent template language that doesn't confuse the hell out of newbies and oldbies alike... cheers, Chris (Who just spent 1/2 hour figuring out how to do a multi-language site in Zope, and now after 6hrs of trying has given up doing a recursive tree copy to get the old site into the new structure with a DTML method or two and is resorting to ugly hacky external methods because Python Methods arent' around/stable) PS: Zope: yes it makes the hard things very easy, but it makes the easy things very hard, so it all balances out nicely... ;-) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: low level HTML in Zope
Hi folks, I wholeheartedly agree that one should learn handcoded html, if only in order to be able to clean up what the html editors do that you want to customize. I have found that it is possible to write very complex files with code warrior or dreamweaver. From the zope interface, you can import a dtml document, and pull up the edited file into zope. When you try to submit the 'change' command, the zope parser will throw out any errors, etc. ciao! greg. Gregory Haley venaca.com Anser wrote: > > "Henny van der Linde" <[EMAIL PROTECTED]> wrote: > > ...Zope forces you often to go to nitty gritty details of HTML > programming. > > I think that's a good thing (for me). GUI tools tend to make > > you very lazy and often produce horrible HTML (for example Frontpage). > > Today's best WYSIWYG editors produce excellent HTML, including Dreamweaver > and Allaire Homesite. (There should be a rule that nothing is every > usefully compared to the hideous Frontpage.) > > Zope's text box interfaces do encourage you to mess with low level HTML, but > there is no help or verification that you actually know what you're doing. > Learning raw HTML is fun and can be useful, but if you program that way, you > should always follow up with a *validator* like CSE HTML Validator or a > recent build of Weblint. You will find errors! And errors do matter! > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Customising the calling of the _add method for a product
I have a TimeSheet product which is currently utilising the suggestions from one of the howtos on zope.org, to make the handling of errors a little smarter. Subsequently my addForm code checks to see if any errors were detected and, if not, tries to go to the usual _add method. But this fails. The code below shows what I currently have. If I can just call this _add method I am finished. As always, any help greatfully received Ian ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] FSSession used in Python???
On Fri, 7 Jul 2000, Dan Narkiewicz wrote: > inside my own python written Zope product... Any help would be.. well... > helpful.. I am not sure if it is a good idea to use a Product in the manner you describe but in any case: > --- a class definition --- > def FStest(self): > """fssession test""" > self.a = FSSession() < error appears here FSSession needs to be initialized with a cookie name, (whatever one wants to call the cookie that will store the session id). self.a=FSSession('Danssession') Still it might not work if FSSession cannot access REQUEST etc. Let me know. 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] Mirroring to IIS
Hi Maik, I've been trying to use the ZMirror product and wget with varying degrees of success. See my response to Andy McKay for a description of where I am now. Of course, if I was a real Zopista, instead of a newbie, I would rewrite the ZMirror product to assign file extensions to its output, right? Thanks for your help, Jake <[EMAIL PROTECTED]> >>> Maik Roeder <[EMAIL PROTECTED]> 07/10/00 12:40PM >>> Hi Jake ! Jake LeBeau wrote: > I'm attempting to mirror our Zope site to IIS 5.0 on a W2K Server, >and am having problems with Netscape Navigator. Because the files have > no file extension, Netscape keeps trying to download and save the >files to disk, rather than displaying the content as HTML. I've tried >several ways of specifying that the MIME content type header coming >from the server is "text/html", but nothing alters the behavior of > Netscape. Is there anyone else out there who may have had experience > with this and would be willing to help? Any advice would be appreciated. Try using a mirror tool like w3mir. Folders like http://localhost/w3mir/ will be mirrored to a folder: w3mir/ and an index.html file inside: w3mir/index.html Hope this helps. Regards, Maik Röder -- "The computing future is based on "cyberbodies" - self-contained, neatly-ordered, beautifully-laid-out collections of information, like immaculate giant gardens." The second coming - A manifesto. David Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] C:\Program Files\WebSite>"C:\Program Files\WebSite\bin\python.exe""C:\Program F"C:\Program F
Jonathan DESP wrote: It sounds like your database is corrupted. I would recommend downloading zope 2.2 and using fsrecover.py to recover your data.fs. > I'm getting a problem, I don't understand what it is, my friend and me > didnot find the problem too. -- ethan mindlace fremen Zopatista Community Liason Abnegate I! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Mirroring to IIS
LOL Good catch, I was just about to e-mail more questions ;-) I've been banging my head on it for most of the day, and I think what it comes down to is - why does netscape have no problem displaying pages from ZServer that have no file extension, and yet try to save all files from IIS that don't have a file extension? I think it is because ZServer correctly sends the appropriate MIME type along with each file. IIS doesn't. Apparently IIS sends files without extensions as an "application/octet-stream" content-type. I've tried changing this in IIS by changing the ".*" MIME mapping, but to no avail. I'm afraid I'm getting far afield from the topic of Zope and need to address this to some IIS list or other :-P Thanks for your help, though yours, Jake <[EMAIL PROTECTED]> >>> "Andy McKay" <[EMAIL PROTECTED]> 07/10/00 01:13PM >>> Oops of course you are mirroring to a static file that setting a header will do no good. Damn need more tea to wake me up. - Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 10, 2000 11:40 AM Subject: Re: [Zope] Mirroring to IIS > I did a similar thing and when I mirrored it to IIS as static files I > changed the filename by adding .html > > You can fix the header to always add the correct content type > (RESPONSE.setHeader('Content-Type', 'text/html')) > - Original Message - > From: "Jake LeBeau" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, July 10, 2000 10:47 AM > Subject: [Zope] Mirroring to IIS > > > > Hello all, > > > > I'm attempting to mirror our Zope site to IIS 5.0 on a W2K Server, and am > having problems with Netscape Navigator. Because the files have no file > extension, Netscape keeps trying to download and save the files to disk, > rather than displaying the content as HTML. I've tried several ways of > specifying that the MIME content type header coming from the server is > "text/html", but nothing alters the behavior of Netscape. Is there anyone > else out there who may have had experience with this and would be willing to > help? Any advice would be appreciated. > > > > Thank you, > > > > Jake LeBeau <[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 maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] product import error - please help
Eagan hills wrote: > > All, > > I am working on a new installation of Zope under Red Hat 6.3. When trying to > import any product (Portal Toolkit, Squishdot, KM news etc.), I get an > error - internal server error (500). It seems as if the page isnt there. > There is an import directory under the Zope root directory. > > Any ideas or suggestions will be greatly appreciated. You need to be in Control_Panel/Products when you import products. Does that answer your question? -- ethan mindlace fremen Zopatista Community Liason Abnegate I! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: low level HTML in Zope
"Henny van der Linde" <[EMAIL PROTECTED]> wrote: > ...Zope forces you often to go to nitty gritty details of HTML programming. > I think that's a good thing (for me). GUI tools tend to make > you very lazy and often produce horrible HTML (for example Frontpage). Today's best WYSIWYG editors produce excellent HTML, including Dreamweaver and Allaire Homesite. (There should be a rule that nothing is every usefully compared to the hideous Frontpage.) Zope's text box interfaces do encourage you to mess with low level HTML, but there is no help or verification that you actually know what you're doing. Learning raw HTML is fun and can be useful, but if you program that way, you should always follow up with a *validator* like CSE HTML Validator or a recent build of Weblint. You will find errors! And errors do matter! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Document Title
Terry Babbey wrote: > > I am trying to get a document title to print out and am having > problems. > > As part of my web page I would like to display the title of a > document, and the document id is stored in a variable. But Zope is > interpretting the information in the variable as a string and not as a > document id. I guess I'm confused. You don't use id for the ID? As in, doesn't work properly? There's also , , ... does that help? -- ethan mindlace fremen Zopatista Community Liason Abnigate I! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Document Title
I am trying to get a document title to print out and am having problems. As part of my web page I would like to display the title of a document, and the document id is stored in a variable. But Zope is interpretting the information in the variable as a string and not as a document id. Any ideas, Terry -- __ Terry Babbey Technical Support Specialist Lambton College, Sarnia, Ontario, Canada __ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help with ZPoPyDA
On Mon, Jul 10, 2000 at 01:42:48PM -0500, Nitesh Dhanjani wrote: > > > > > On Mon, 10 Jul 2000, Sebastien Douche wrote: > > > Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: > > # Im trying to access a postres database from within zope. I have > > # ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. > > # > > # The connection string Im using is something like: > > # user=thierry host=myhost dbname=test port=5432 password=mypassword > > > > Yes I know its an example, but did not want to post host+user info to the > entire mailing list. > > I cannot seem to connect to the postgres database using psql, and get: > Failed to authenticate client as Postgres user 'bob' using authentication type>: be_recvauth: unrecognized message type: 131072 > > so its probably not a problem with ZPoPyDA. If anyone has come across this > error or might know of a solution, please let me know. Could you please post a bit more information: platform postgres is running on: postgres version: are internet domain sockets enabled on postgres: was PoPy compiled locally: are multiple versions of postgres residing on your db host: Jim > > Thanks > nitesh. > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** 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] Mirroring to IIS
Oops of course you are mirroring to a static file that setting a header will do no good. Damn need more tea to wake me up. - Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 10, 2000 11:40 AM Subject: Re: [Zope] Mirroring to IIS > I did a similar thing and when I mirrored it to IIS as static files I > changed the filename by adding .html > > You can fix the header to always add the correct content type > (RESPONSE.setHeader('Content-Type', 'text/html')) > - Original Message - > From: "Jake LeBeau" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, July 10, 2000 10:47 AM > Subject: [Zope] Mirroring to IIS > > > > Hello all, > > > > I'm attempting to mirror our Zope site to IIS 5.0 on a W2K Server, and am > having problems with Netscape Navigator. Because the files have no file > extension, Netscape keeps trying to download and save the files to disk, > rather than displaying the content as HTML. I've tried several ways of > specifying that the MIME content type header coming from the server is > "text/html", but nothing alters the behavior of Netscape. Is there anyone > else out there who may have had experience with this and would be willing to > help? Any advice would be appreciated. > > > > Thank you, > > > > Jake LeBeau <[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 maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** 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] Trouble compiling ZMySQLDA
Hi Again, Ewald, // I think I'ts a shame information like this isn't in the ZMySQLDA docs. I // think // it's also a bit of a shame that it's so easy (at least for stupid folks // like me :-) // to download an old version of ZMySQLDA from zope.org while installing // version 1.2 // is a piece of cake. If you search the archives for my name (Walstad) you will see a LOT of questions on how to compile the MySQLDA and MySQLDB. I had a really hard time with it. I now have it working nicely and am happy with it on my "hobby" sites (www.walstads.net). However, I am now considering going to PostgreSQL, instead of MySQL, to serve a business site I am working on so I may have even more to learn. If you are going to use your DB for a production site, I would recommend you look into the comparisons between MySQL and PostgreSQL. PostgreSQL may be a better fit for you and getting started with it now may save you some frustration later on. The mailing list archives have a few discussions on the differences and benefits of each DB. As far as poor documentation goes, I feel your pain. If you believe in "No Pain, No Gain" then relax, you are going to gain a lot from the experience. I'm not a masichist, but I am glad I stuck with it. I like the "open sores" (that's what my wife calls it) community as it has no borders and promotes boundless learning. I'm sure everyone on the list has had similar experiences and will help out as "free" time allows. Good luck. 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] Help with ZPoPyDA
On Mon, 10 Jul 2000, Sebastien Douche wrote: > Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: > # Im trying to access a postres database from within zope. I have > # ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. > # > # The connection string Im using is something like: > # user=thierry host=myhost dbname=test port=5432 password=mypassword > > It's a example. Change with yours attributes. > thierry by your user. > myhost by your host (or localhost). > test by your db name. > mypassword by your db password. > Yes I know its an example, but did not want to post host+user info to the entire mailing list. I cannot seem to connect to the postgres database using psql, and get: Failed to authenticate client as Postgres user 'bob' using : be_recvauth: unrecognized message type: 131072 so its probably not a problem with ZPoPyDA. If anyone has come across this error or might know of a solution, please let me know. Thanks nitesh. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Mirroring to IIS
I did a similar thing and when I mirrored it to IIS as static files I changed the filename by adding .html You can fix the header to always add the correct content type (RESPONSE.setHeader('Content-Type', 'text/html')) - Original Message - From: "Jake LeBeau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 10, 2000 10:47 AM Subject: [Zope] Mirroring to IIS > Hello all, > > I'm attempting to mirror our Zope site to IIS 5.0 on a W2K Server, and am having problems with Netscape Navigator. Because the files have no file extension, Netscape keeps trying to download and save the files to disk, rather than displaying the content as HTML. I've tried several ways of specifying that the MIME content type header coming from the server is "text/html", but nothing alters the behavior of Netscape. Is there anyone else out there who may have had experience with this and would be willing to help? Any advice would be appreciated. > > Thank you, > > Jake LeBeau <[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 maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Mirroring to IIS
Hi Jake ! Jake LeBeau wrote: > I'm attempting to mirror our Zope site to IIS 5.0 on a W2K Server, >and am having problems with Netscape Navigator. Because the files have > no file extension, Netscape keeps trying to download and save the >files to disk, rather than displaying the content as HTML. I've tried >several ways of specifying that the MIME content type header coming >from the server is "text/html", but nothing alters the behavior of > Netscape. Is there anyone else out there who may have had experience > with this and would be willing to help? Any advice would be appreciated. Try using a mirror tool like w3mir. Folders like http://localhost/w3mir/ will be mirrored to a folder: w3mir/ and an index.html file inside: w3mir/index.html Hope this helps. Regards, Maik Röder -- "The computing future is based on "cyberbodies" - self-contained, neatly-ordered, beautifully-laid-out collections of information, like immaculate giant gardens." The second coming - A manifesto. David Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] automatic link adjustment
Hi Ragnar ! Ragnar Beer wrote: > I just ran into some kind of administrative problem: my students are > not so willing anymore when it comes to changing links for the third > revision of our website. There are about 200 links to change manually > and they have my full sympathy. Apart from that this process is quite > error-prone and always needs a lot of testing. > > Is it possible to have automatic link adjustment in Zope if you > change an objects name? I mean like in Dreamweaver or whatever > website management programm so that it would ask whether to adjust > the referring links if you change a page's name? > > I know we could do the management partly with Dreamweaver and put the > files via ftp but whatever sends cleartext passwords is not an > option. So ftp is out. > > Any other way? The Zope way would be to consider this beforehand by splitting the URLs into a part that may change over time and a part that is more constant. The changing part of your URL should then be a variable somewhere on top of the hierarchy, and the complete URL can then be combined with the constant part further down the hierarchy. Perhaps you can motivate your students by telling them that they only have to do this one more time ;-) Best regards, Maik Röder ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Testing For Filesize
Hi Terry ! Terry Babbey wrote: > > I am trying to create a automated drop down list, and here is my code > so far: > > > > > > > > I would like to be more specific though and only list files of zero > byte size. Is this possible? There is a snippet here: http://zdp.zope.org/projects/zsnippet/snippets/DTMLTags/ObjectLength Combined with a dtml-if that should give what you want to achieve. Regards, Maik Röder -- "The computing future is based on "cyberbodies" - self-contained, neatly-ordered, beautifully-laid-out collections of information, like immaculate giant gardens." The second coming - A manifesto. David Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: Zippy not working.
[Terje Malmedal] > Hi, I can't get Zippy to work with Zope 2.1.6, I had it working in > Zope 2.0, did something change? Strange, now it works. Oh well never mind. -- - Terje [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] Zippy not working.
Hi, I can't get Zippy to work with Zope 2.1.6, I had it working in Zope 2.0, did something change? -- - Terje [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] ANNOUNCE: Zope 2.2.0 beta 4 released
Hi all, Zope 2.2.0 beta 4 has been released - you can download it from Zope.org: http://www.zope.org/Products/Zope/2.2.0b4/ This release includes fixes for a number of bugs found in the beta cycle, including a fix for the recent database packing issue. It also contains updated online help and API documentation. I expect this to be the last beta before 2.2 final. For more information, see the CHANGES.txt file for the release: http://www.zope.org/Products/Zope/2.2.0b4/CHANGES.txt If you are still using a 2.1.x version of Zope, be sure to see the document upgrading to Zope 2.2: http://www.zope.org/Products/Zope/2.2.0b4/upgrading_to_220 for information on the recent changes to the Zope security model and other upgrade information. 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 )
[Zope] Mirroring to IIS
Hello all, I'm attempting to mirror our Zope site to IIS 5.0 on a W2K Server, and am having problems with Netscape Navigator. Because the files have no file extension, Netscape keeps trying to download and save the files to disk, rather than displaying the content as HTML. I've tried several ways of specifying that the MIME content type header coming from the server is "text/html", but nothing alters the behavior of Netscape. Is there anyone else out there who may have had experience with this and would be willing to help? Any advice would be appreciated. Thank you, Jake LeBeau <[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] automatic link adjustment
Howdy Zopistas out there! I just ran into some kind of administrative problem: my students are not so willing anymore when it comes to changing links for the third revision of our website. There are about 200 links to change manually and they have my full sympathy. Apart from that this process is quite error-prone and always needs a lot of testing. Is it possible to have automatic link adjustment in Zope if you change an objects name? I mean like in Dreamweaver or whatever website management programm so that it would ask whether to adjust the referring links if you change a page's name? I know we could do the management partly with Dreamweaver and put the files via ftp but whatever sends cleartext passwords is not an option. So ftp is out. Any other way? --Ragnar ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help with ZPoPyDA
Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: # Im trying to access a postres database from within zope. I have # ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. # # The connection string Im using is something like: # user=thierry host=myhost dbname=test port=5432 password=mypassword It's a example. Change with yours attributes. thierry by your user. myhost by your host (or localhost). test by your db name. mypassword by your db password. For create a DB -> man createdb For create a user -> man createuser Docs at /usr/doc/postgresql-xxx/ -- (°- Sébastien Douche <[EMAIL PROTECTED]> //\ IDEALX v_/_ Ingénierie Open Source ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Trouble compiling ZMySQLDA
Hello Ewald, Here's a mailing list archive that may help you: http://zope.nipltd.com/public/lists/zope-archive.nsf/242bb7cc2b2c343d802568a b003585d4/041159ede9899734802568a700259726?OpenDocument It helped me with the same problem. Basically, It tells you how to make a few simple modifications to the MySQLmodule.c file that allow the file to be compiled. Hope It Helps... Eric. // -Original Message- // From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ewald // Wasscher // Sent: Sunday, July 09, 2000 4:54 PM // To: [EMAIL PROTECTED] // Subject: [Zope] Trouble compiling ZMySQLDA // // // Hello all, // // When I try to compile ZMySQLDA I get the following error messages after // typing make: // // [root@catv6216 src]# make // gcc -fPIC -I/usr/local/mysql/include -I/usr/include/mysql -g -O2 // -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c // ./MySQLmodule.c // ./MySQLmodule.c: In function `pythonify_row': // ./MySQLmodule.c:238: warning: assignment from incompatible pointer type // ./MySQLmodule.c: In function `pythonify_res_fields': // ./MySQLmodule.c:384: invalid lvalue in unary `&' // ./MySQLmodule.c: In function `STH_fetchdict': // ./MySQLmodule.c:1125: invalid lvalue in unary `&' // ./MySQLmodule.c:1147: invalid lvalue in unary `&' // make: *** [MySQLmodule.o] Error 1 // [root@catv6216 src]# // // I can't even read a single line of c so I have no idea what's wrong // exactly. // // FYI: // // OS: Immunix 6.2 (= RedHat 6.2 + stackguard) // Zope: 2.1.6 (compiled from Jeff Rush's source rpm, 2.2b3 doesn't work // either) // MySQL: 3.22.32 and 3.23.21 // Python MySQLdb: 2.0 2.1 // // Ewald Wasscher // // ___ // Zope maillist - [EMAIL PROTECTED] // http://lists.zope.org/mailman/listinfo/zope // ** 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] GUF Problem
At 17:15 10/07/00 +0200, you wrote: >Is it possible (and how) to use the standard ACL >with a user-database behind it ??? > >Thanks >Mario Well kind of, in the sense that you can check the user login using ACL in the normal way and then you can match AUTHENTICATED_USER against your user database so your database knows who it is. It means maintaining your users in two places (in the ACL folder and in the database), but it's a workaround until the GUF problems are ironed out or login manager is up and running (with docs on how to use it). I need this because I've got users inputting data via Zope and I need to have a user ID I can stamp their data with - so all I do is - select user_id from users where in an SQL-method where AUTHENTICATED_USER is defined as an argument. Seems to work OK ! that's what I'm doing until I (or someone else) finds out hot to get GUF working again. > > > > Richard Moon wrote: > > > > > > I don't think GUF works in its current release, or maybe the set-up > > > instructions are incomplete. I used it before and it was ok but I > tried the > > > latest release and had the same problem as you. I reported it to GUF's > > > author but didn't get a reply. > > > > I just added a SQL user database, and will try to make it run. > > > > > I've reverted back to standard ACL folders for the moment. > > > > My problem is the little window with "Zope" in it, when the user tries > > to logon. If there was a way to customize it to anything I want, I stay > > with the standart ACL. I'm using GUF only because of the docLogin > > methot, that allows me to customize the login page. > > > > []s > > -- > > César A. K. Grossmann > > [EMAIL PROTECTED] > > http://members.xoom.com/ckant/ > > > > ___ > > Zope maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope > > ** 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 ) Richard Moon [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] MySQLDA Won't build
Hi, I'm not sure if you are having the same problem, but when we built MySQLDA, I found that there are some lines in one of the configure files that need to be fixed. Did you save the compile log? (Sorry, but I cannot recall the exact file that has the problems), but there are three places where there is an & in the middle of a line that is trying to act in the C like addressing, but there is no address there. A second problem we had, is that after fixing these lines this did not build on redhat but did fine under informix (???). we had to move the .so file by hand, and it works ok. I have been having trouble getting any of the various MySQL modules (either for zope or for python) to build on RedHat -- I'm growing increasingly impatient with redhat it seems to be getting more microsoftish with each new release. ciao! greg. Gregory Haley venaca.com > Darin Lee wrote: > > Help, > > I cannot get the MySQL Database Adaptor to build. > > Error: > gcc -shared _mysqlmodule.o -L/usr/local/lib/mysql -o > _mysqlmodule.so > Whoa, couldn't import _mysql: ./_mysqlmodule.so: undefined > symbol: mysql_store_result > Probably _mysqlmodule.so didn't compile correctly. > Or your library paths may be bad. Check the FAQ. > > I checked the faq (also downloaded and compiled lastest > versions - MySQL, Python, and Zope from source) - nada. > > I've set LD_LIBRARY_CONFIG, I've also edited the > "Setup.in" file many, many times. No joy (My MySQL is in > /usr/local). > > System is Redhat 6.1 - Intel... > > Any idea on what could be wrong?? > > Thanks, > -Darin Lee > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Anyone for a Zope bonding experience at OSS con next week?
This is a repeat of a previous post - the OSS con is next week. About 6 people have responded before, you don't need to respond again if you have done so already. --- Hi Zopistas, Anyone else in this list going to the OReilly Open Source SW convention July 17-20?. Anyone interested in having an informal Zopista.party.dinner.beerfest.splunge (or whatever...) one night during the con or perhaps Sunday nite July 16? If enough people are interested I'll try to set something up. Might be fun to hang out and share experiences &stuff; Since this is Off-Topic- probably you should respond via email to: Jeff Sasmor [EMAIL PROTECTED] I'll post a summary to this list if enough people respond. PS: People from Digital Creations are welcome too! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Testing For Filesize
I am trying to create a automated drop down list, and here is my code so far: I would like to be more specific though and only list files of zero byte size. Is this possible? Terry -- __ Terry Babbey Technical Support Specialist Lambton College, Sarnia, Ontario, Canada __ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] data record exceeds transaction record (was C:\ProgramFiles\WebSite>"...)
On Fri, 7 Jul 2000, Jonathan DESP wrote: > I'm getting a problem, I don't understand what it is, my friend and me > didnot find the problem too. [] > data record exceeds transaction record at 34224435 This may not be of any help, but I got this kind of error when I was trying to build a Zope site on a computer that had one of the bad Intel motherboards. I banged my head agaist the wall hard before I finally figured out that it was a hardware problem... --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] GUF Problem
Make sure you have assigned proxy roles to the GUF dtml methods (userAuthenticate, UserList, etc.) Failing to do so can result in permission problems similar to what you are seeing. -=Brad=- -Original Message- From: Mario Premke To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: 7/10/00 11:15 AM Subject: Re: [Zope] GUF Problem Is it possible (and how) to use the standard ACL with a user-database behind it ??? Thanks Mario > > Richard Moon wrote: > > > > I don't think GUF works in its current release, or maybe the set-up > > instructions are incomplete. I used it before and it was ok but I tried the > > latest release and had the same problem as you. I reported it to GUF's > > author but didn't get a reply. > > I just added a SQL user database, and will try to make it run. > > > I've reverted back to standard ACL folders for the moment. > > My problem is the little window with "Zope" in it, when the user tries > to logon. If there was a way to customize it to anything I want, I stay > with the standart ACL. I'm using GUF only because of the docLogin > methot, that allows me to customize the login page. > > []s > -- > César A. K. Grossmann > [EMAIL PROTECTED] > http://members.xoom.com/ckant/ > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Help with ZPoPyDA
Hello, Im trying to access a postres database from within zope. I have ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. The connection string Im using is something like: user=thierry host=myhost dbname=test port=5432 password=mypassword When I try to add a Z PoPy Database Connection with the above string, I get: Invalid connection string: user=thierry host=myhost dbname=test port=5432 password=mypassword Traceback (innermost last): File /usr/local/zope/2.1.7/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/zope/2.1.7/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/zope/2.1.7/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /usr/local/zope/2.1.7/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/zope/2.1.7/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: addConnection) File /usr/local/zope/2.1.7/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: addConnection) File /usr/local/zope/2.1.7/lib/python/Products/ZPoPyDA/DA.py, line 55, in addConnection (Object: ElementWithAttributes) File /usr/local/zope/2.1.7/lib/python/Products/ZPoPyDA/DA.py, line 70, in __init__ (Object: RoleManager) File /usr/local/zope/2.1.7/lib/python/Products/ZPoPyDA/DA.py, line 140, in edit (Object: RoleManager) File /usr/local/zope/2.1.7/lib/python/Shared/DC/ZRDB/Connection.py, line 227, in connect (Object: RoleManager) File /usr/local/zope/2.1.7/lib/python/Products/ZPoPyDA/PoPy_db.py, line 54, in __init__ BadRequest: (see above) Any help would be appreciated. Thanks nitesh. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] GUF Problem
Is it possible (and how) to use the standard ACL with a user-database behind it ??? Thanks Mario > > Richard Moon wrote: > > > > I don't think GUF works in its current release, or maybe the set-up > > instructions are incomplete. I used it before and it was ok but I tried the > > latest release and had the same problem as you. I reported it to GUF's > > author but didn't get a reply. > > I just added a SQL user database, and will try to make it run. > > > I've reverted back to standard ACL folders for the moment. > > My problem is the little window with "Zope" in it, when the user tries > to logon. If there was a way to customize it to anything I want, I stay > with the standart ACL. I'm using GUF only because of the docLogin > methot, that allows me to customize the login page. > > []s > -- > César A. K. Grossmann > [EMAIL PROTECTED] > http://members.xoom.com/ckant/ > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** 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] GUF Authentication Problems
Ooops, I didn't recognize the Zope-Output: 2000-07-10T17:39:08 ERROR(200) GUF http://134.96.119.88:8080/portal_folder/acl_users/userAuthenticate raised an exception (('Unauthorized', 'You are not authorized to access sql_get_password.', )) Nevertheless - I played around with the permission for anonymous, default_role and special_role, so I gave permission to use ZSQL-Method and in addition to open/close Database-connections(just in case) - but nothing happened ... I still can not login(with valid username and password) and Zope says: 'You are not authorized to access sql_get_password.' Any hints ... Mario > Hi, > I cannot authenticate users with the following method: > > > > > > > > > > The ZSQL-Method works as well as the former default method > (user='jorge',passwd='secret') did. > This above code comes from the Zope How-TO's: > http://www.zope.org/Members/hippy/GUF_SQL_crypt_1_2 > > Any ideas will be appreciated as I have no idea any more > what could be wrong... > Thanks > Mario > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Newbie: Build Object Names
Dieter, Thanks, that worked like a charm. I find I am really struggling trying to learn the syntax and variables for the various commands. Would an understanding of Python help me to understand the Zope commands better and is there good documentation for Python that does not expect the reader to have a large background knowledge? Terry Dieter Maurer wrote: > Terry Babbey writes: > > I am trying to build my object names and it is not working. Here is my > > code done in three ways and only one way works. > > #1 > Use: > > > > Dieter -- __ Terry Babbey Technical Support Specialist Lambton College, Sarnia, Ontario, Canada __ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] GUF Authentication Problems
Hi, I cannot authenticate users with the following method: The ZSQL-Method works as well as the former default method (user='jorge',passwd='secret') did. This above code comes from the Zope How-TO's: http://www.zope.org/Members/hippy/GUF_SQL_crypt_1_2 Any ideas will be appreciated as I have no idea any more what could be wrong... Thanks Mario ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 alert! Frustration right off the bat...
Create your own image file. Use anything you would like. -- Pamela Crosby Technical Writer mailto:[EMAIL PROTECTED] Digital Creations http://www.digicool.com Publishers of Zope http://www.zope.com > -Original Message- > From: Bill Barnes [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 09, 2000 3:44 PM > To: zope mail list > Subject: Re: [Zope] Newbie alert! Frustration right off the bat... > > > R. David Murray wrote: > > >> You should be able to use the management interface to > >> delete the index_html document inside your existing ZAcme folder, > >> and then recreate it according to the tutorial . > > > Yep, that was it, thanks. > > > Rob > > Running Debian 2.2 > Well, yep and nope! > My folder at root lists Control Panel > QuickStart > ZAcme > acl users > standard error message > standard html footer > standard html header > Opening ZAcme does list News, Products, Research > That does not agree with the tutorial layout. Maybe that is > not significant > so I proceed with Add Image. > Now, pray tell, where is that .gif file. > > Thanks, > Bill Barnes > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] [Fwd: [Zope] GUF Problem]
One reply I get from Mario: Mario Premke wrote: > > I remember I had the same problem. > In GUF's acl_user folder I gave the special_role > the same permissions as the anonymus role. > As far as I remember that did it ... -- César A. K. Grossmann [EMAIL PROTECTED] http://members.xoom.com/ckant/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] GUF Problem
Richard Moon wrote: > > I don't think GUF works in its current release, or maybe the set-up > instructions are incomplete. I used it before and it was ok but I tried the > latest release and had the same problem as you. I reported it to GUF's > author but didn't get a reply. I just added a SQL user database, and will try to make it run. > I've reverted back to standard ACL folders for the moment. My problem is the little window with "Zope" in it, when the user tries to logon. If there was a way to customize it to anything I want, I stay with the standart ACL. I'm using GUF only because of the docLogin methot, that allows me to customize the login page. []s -- César A. K. Grossmann [EMAIL PROTECTED] http://members.xoom.com/ckant/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] a product with external methods
Hi, 1st question: I'm currently creating a ZClass based product which includes some external methods. If I want to distribute this product, do I have to distribute my product AND my external methods for it to work correctly elsewhere, or just distributing the product is sufficient ? 2nd question about ZCatalog and Zope 2.1.6: When I instanciate a folderish ZClass of my own, I want to automatically create a ZCatalog instance, then I add the following line to MyZClass_add method: and when I create an instance of my class I've got the following NameError : If I don't call manage_addZCAtalog in my add method but instead add the ZCatalog from Zope management interface it works fine. I think I've called this method correctly according to the ZQR, so I can't understand why it doesn't work. I've searched on this list archives on egroups about "adding ZCatalog" or "add ZCatalog" and I've not found anything useful. then I've searched for manage_addZCatalog and I've applied the patch sent by Dieter Maurer on May 28th to ZCatalog.py and restarted Zope but with no luck. please could someone help me ? thanks in advance. Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Wizards?
I am trying to create wizards but as usual I am running into problems.. To forward input to the next step I learned in the howto "Wizards made easy" that this was the way to do it: When I type that code in however I get the following error message: Error Type: TypeError Error Value: illegal argument type for built-in operation Is the howto wrong or did I do something wrong? Wizards are prebuilt but where do I change how wizards should react. For example where do I change the caption on the "next"-button or the "title"-output? Peter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Trouble compiling ZMySQLDA
Ron Bickers wrote: > > Actually, I just realized that what you're trying to compile is the MySQLdb > that comes with the DA. The DA itself is written in Python, and doesn't > need to be compiled. Aargh, if I had know this yesterday! Thanks. Also it was a little late yesterday when I started playing with ZMySQLDA, so I went to zope.org did a search on "mysql", followed the first big fat link "ZMySQLDA" and ended up with ZMySQLDA versions 1.1.3 and 1.1.4.. Installing version 1.2.0 isn't a problem at all. Ewald ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Add a new atrribute to a record
Hi I have a variable `x' , type is `instance' -record-, was created with something like http://host/page?x.attr1:record=Value1 I want to add a new attribute `attr2', in Zope something similar with: OR (python ) x.attr2=VALUE2 but the assign operator `=' is not allowed in Python expresion, so I can not call So I try: (the expresion in Python is (VERY) correct) When I try to save the DTML-METHOD , (NOT at the EXECUTION time), I get the error: ### ... ... File /usr/lib/zope/lib/python/DocumentTemplate/DT_Util.py, line 357, in name_param (Info: ({'': '"x.__dict__.update({\'attr\':\'attrValue\'})"'}, 'call', 1, 'name')) File /usr/lib/zope/lib/python/DocumentTemplate/VSEval.py, line 175, in __init__ (Object: x.__dict__.update({'attr':'attrValue'})) TypeError: illegal name used in expression ... # I have take a look at VSEval.py, and looks like I can not use names that are starting with `_' and are not in ('_', '_vars', '_getattr') How can I add a new attribute to a variable? I can do this with an external method, but maybe exist other way... Thanks! PM ___ "Will I be using Python today?" and if the answer is "yes" I know that it's going to be a good day. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] HEELLPP - Please !!!
Try using an argument other than 'login' Change it to something else because login could easily be a reserved keyword. To test this simply change it to xlogin or something similar. Let me know if that helps. -Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mario Premke Sent: 10 July 2000 13:58 To: [EMAIL PROTECTED] Subject: [Zope] HEELLPP - Please !!! Hi, I have the following ZSQL-Method: arguments : login - select user_passwd as real_password from users where users.user_login= when I now press "change and test" and insert a valid login into the Login-field I get: Error, Missing Input: Missing input variable, login The database works just fine as do other ZSQL-Methods ... Thanks, Mario ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] HEELLPP - Please !!!
Hi, I have the following ZSQL-Method: arguments : login - select user_passwd as real_password from users where users.user_login= when I now press "change and test" and insert a valid login into the Login-field I get: Error, Missing Input: Missing input variable, login The database works just fine as do other ZSQL-Methods ... Thanks, Mario ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Rendering Folderish ZClass Object
Hi Chris ! Chris Withers wrote: > I have a ZClass based on Folder. Contained within this is a DTML Method, > index_html. This is mapped to the 'View' view and renders the > appropriate object contained in itself depending on soem logic. > > All, is well if I access the object through a URL, the page is rendered > as expected. > However, if I access the object with the following code: > > > All I get is: > > > Why is this? Why does the normal rendering not take place? Do you know about the Software Product: Renderable Base ZClass ? http://www.zope.org/Members/lalo/Renderable-ZClass Regards, Maik Röder -- "The computing future is based on "cyberbodies" - self-contained, neatly-ordered, beautifully-laid-out collections of information, like immaculate giant gardens." The second coming - A manifesto. David Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How to set Proxy-Roles
Hi, i have a DTML-Method that adds a subfolder to a folder. I want to give anonymous users the permission, to add a Folder by using this DTML-Method. I added the Proxy-Role "Manager" to this DTML-Method, but anonymous users still can't use it - everytime they get a "You are not authorized to access manage_addFolder". Where is my mistake? Thanks Robert ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Where I can find the script of the default manage_main method ???
Frederic QUIN wrote on Mon, 10 Jul 2000: >Hi all, > > >I would like to copy parts of the manage_main method but I don't no where I >can find the script of this method. > > >Thanks >Fred Look at lib/python/OFS/main.dtml in your Zope source tree. Michael -- Michael Gutmann M.A. [EMAIL PROTECTED] Universitaetsrechenzentrum Heinrich-Heine-Universitaet Duesseldorf ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Rendering Folderish ZClass Object
Hi, I have a ZClass based on Folder. Contained within this is a DTML Method, index_html. This is mapped to the 'View' view and renders the appropriate object contained in itself depending on soem logic. All, is well if I access the object through a URL, the page is rendered as expected. However, if I access the object with the following code: All I get is: Why is this? Why does the normal rendering not take place? cheers, Chris PS: I notice that a normal folder object will behave identically, so the ZClass bti is probably irrelevent. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Where I can find the script of the default manage_main method ???
Hi all, I would like to copy parts of the manage_main method but I don't no where I can find the script of this method. Thanks Fred ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] cr/lf causing spaces
> On Sun, 9 Jul 2000, Ben Leslie wrote: > > > > One of my "favorite" issues with win/DOS has always been its use of CR+LF > > > combinations. Why? Because all browsers interpret the thing as a SPACE. > > > > AFAIK this is an HTML thing, not a win/DOS thing. The HTML spec treats any > > whitespace as a space. > > Well unix uses only cr by default, and browsers do not interpret that as a > whitespace. > I'm sure you meant to type 'uses only lf by default'. The standard unix text separator is the newline, 0x0A, often shown as \n. Not cr, 0x0D, often shown as \r. -- cary > > > Or is there already a way to avoid this? > > I ran into the same problem (using Linux), and there isn't really anyway to > > get around it, apart from having un-nicely formatted DTML source. > > Maybe a problem with the way the textarea editor netscape etc work. > > > > Nils > > > --__--__-- > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] "just html", help, help, help !!!
- Original Message - From: Vincent Maton <[EMAIL PROTECTED]> To: Zope <[EMAIL PROTECTED]> Sent: Monday, July 10, 2000 11:10 AM Subject: [Zope] "just html", help, help, help !!! > Hello, > > Can you help me ??? > > I have one page with a "form", in this page I have an "OnClick" who open a > new page who have some informations and when I "Submit" (I think that I must > use a form also in this page to send the informations to the first page), I > want to receive the informations on the first page, in a input or something > else ??? > > We are three people for find the answer but we don't find the way, this is > why I call you... The key is `opener' propery of `window'object (browser must be capable JavaScript 1.1) I have tested it - just for you :) - with IE5 and NN4.61 Just a draft: The parent HTML: A link to a child The child: function setInParent(aString) { window.opener.document.forms[0].elements[0].value=aString; } PM ___ "Will I be using Python today?" and if the answer is "yes" I know that it's going to be a good day. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Date-bug in properties?
Ah I saw that was a known bug. Forget this post :) Peter Arvidsson skrev: > When I try to add a date-property and want to leave the Value-field > empty i get the following error: > > Error Type: Invalid Date-Time String > Error Value: > > When I write a date in the Value-field I can add the date. Is this a > bug? Why cant I add a date with no default value? In several howtos they > just add the date with no default value, so why cant I? > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] User could change tabel size
Hi list. I have a calendar and I now want that I could change it size in browser. Could someone send me a script or an url where is more information. Rex ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Date-bug in properties?
When I try to add a date-property and want to leave the Value-field empty i get the following error: Error Type: Invalid Date-Time String Error Value: When I write a date in the Value-field I can add the date. Is this a bug? Why cant I add a date with no default value? In several howtos they just add the date with no default value, so why cant I? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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 questions: Job_board Howto, ZCatalog, Squishdot
Meeting Maker Webmaster wrote: > One last question ;-) I've seen in this mailing list that Squishdot will > not work with Zope 2.2.0 until version 0.4.4... when is this version > planed? I've tried to install Squisdot on the Zope 2.2.0b3 server and I get > the same problem as with my "Job_Board" test... will one solution solve the > other? 0.4.4 will land in a couple of weeks hopefully. One solution may well solve both problems, if you find it, please tell me ;-) 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] "just html", help, help, help !!!
Hello, Can you help me ??? I have one page with a "form", in this page I have an "OnClick" who open a new page who have some informations and when I "Submit" (I think that I must use a form also in this page to send the informations to the first page), I want to receive the informations on the first page, in a input or something else ??? We are three people for find the answer but we don't find the way, this is why I call you... Thank you a lot ... Vincent. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Trouble compiling ZMySQLDA
Seems that because of how my Zope was installed had problems... I copied all files from /usr/lib/python1.5/site-packages/ to /usr/local/zope/lib/python/Products/ZmySQLDA and all was sweet. Thanks for your help Ron! Peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Marriott Sent: Monday, 10 July 2000 3:46 PM To: Ron Bickers; [EMAIL PROTECTED] Subject: RE: [Zope] Trouble compiling ZMySQLDA Thanks for the help Ron. This almost works for me. I now have the product in zopes control panel, but it is broken. (see traceback below) Is this because my MySQL-Python RPM from your mail is not intalling properly ? Thanks Peter ZMySQLDA Import Traceback Traceback (innermost last): File "/usr/local/Zope-2.1.6-linux2-x86/lib/python/OFS/Application.py", line 387, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/ZMySQLDA/__init__.py", line 106, in ? import sys, os, Globals, DA File "/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/ZMySQLDA/DA.py", line 108, in ? from db import DB File "/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/ZMySQLDA/db.py", line 106, in ? import _mysql, regex, sys ImportError: No module named _mysql -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ron Bickers Sent: Monday, 10 July 2000 1:17 PM To: Peter Marriott; [EMAIL PROTECTED] Subject: RE: [Zope] Trouble compiling ZMySQLDA The RPMs install in /usr/share/zope/lib/python/Products, where the Zope RPMs provided by Jeff Rush install the Products folder. If you're not using the Zope RPMs and have zope installed somewhere else, you can still use these RPMs and just make a symlink to your real Products folder. For example (if Zope is installed in /usr/local/zope): # cd /usr/local/zope/lib/python/Products # ln -s /usr/share/zope/lib/python/Products/ZMySQLDA ZMySQLDA Restart Zope and that should do it. ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] > -Original Message- > From: Peter Marriott [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 10, 2000 12:58 AM > To: Ron Bickers; [EMAIL PROTECTED] > Subject: RE: [Zope] Trouble compiling ZMySQLDA > > > I couldn't seem to get the RPMS to install, what kind of setup are they > expecting? Does it matter where I have installed zope? (I am a linux > learner so please forgive if I am not making sense) > > Thanks > Peter. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Trouble compiling ZMySQLDA
Thanks for the help Ron. This almost works for me. I now have the product in zopes control panel, but it is broken. (see traceback below) Is this because my MySQL-Python RPM from your mail is not intalling properly ? Thanks Peter ZMySQLDA Import Traceback Traceback (innermost last): File "/usr/local/Zope-2.1.6-linux2-x86/lib/python/OFS/Application.py", line 387, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/ZMySQLDA/__init__.py", line 106, in ? import sys, os, Globals, DA File "/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/ZMySQLDA/DA.py", line 108, in ? from db import DB File "/usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/ZMySQLDA/db.py", line 106, in ? import _mysql, regex, sys ImportError: No module named _mysql -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ron Bickers Sent: Monday, 10 July 2000 1:17 PM To: Peter Marriott; [EMAIL PROTECTED] Subject: RE: [Zope] Trouble compiling ZMySQLDA The RPMs install in /usr/share/zope/lib/python/Products, where the Zope RPMs provided by Jeff Rush install the Products folder. If you're not using the Zope RPMs and have zope installed somewhere else, you can still use these RPMs and just make a symlink to your real Products folder. For example (if Zope is installed in /usr/local/zope): # cd /usr/local/zope/lib/python/Products # ln -s /usr/share/zope/lib/python/Products/ZMySQLDA ZMySQLDA Restart Zope and that should do it. ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] > -Original Message- > From: Peter Marriott [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 10, 2000 12:58 AM > To: Ron Bickers; [EMAIL PROTECTED] > Subject: RE: [Zope] Trouble compiling ZMySQLDA > > > I couldn't seem to get the RPMS to install, what kind of setup are they > expecting? Does it matter where I have installed zope? (I am a linux > learner so please forgive if I am not making sense) > > Thanks > Peter. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] DTMLDocument content - "html quoted" or not
Aleksander Salwa schrieb am Fre, 07 Jul 2000: <...> >In mentioned method, to render document, I wrote: > > > >But this outputs html quoted text (so I see HTML and DTML tags in browser, >instead of formatting and variables). Hmm, looks like a problem I had a few days ago. Maybe helps (untried ;-) -- Michael Gutmann M.A. [EMAIL PROTECTED] Universitaetsrechenzentrum Heinrich-Heine-Universitaet Duesseldorf ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )