[Zope-dev] Re: [Zope] [PATCH] to Zope's Management Interface
On Mon, 2002-04-29 at 13:21, Jerome Alet wrote: Hi the attached patch to apply to zope/lib/python/OFS/dtml/main.dtml allows people who want to use ZShell to type ZShell commands directly from the Zope's Management Interface. It should be transparent for people who don't want to use ZShell at all. ... As always any comment is very welcome. Have you thougth of making this a Hotfix instead of patch ? --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] not Python 2.2a1 but Python 2.2b1
Andy McKay wrote: Is out and: Large file support is now enabled on Win32 and Win64 platforms, and automatically configured (at least on Linux and Solaris). Cool, that will mean there will be less worries about Zope users hitting the 2 gig limit. But will Zope 2.4.x run on 2.2 ? --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Python Script bug?
Chris Withers wrote: Hi, The following code: objects = map(lambda b: b.getObject,brains) try objects = map(lambda b: b.getObject(),brains) --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: ZPL and GPL
Barry A. Warsaw wrote: With respect to Python, the issue has been hashed to death over in c.l.py and other forums, so I think this will be my last post on the subject here. IMO, the Python 2.0.1 license is the best of all possible worlds. In the words of the FSF themselves: The License of Python 2.0.1, 2.1.1, and newer versions. Is there such thing as Python 2.1.1 ? I did'nt find any mention of it on python.org ? - Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZPL and GPL
Jerome Alet wrote: On Tue, 26 Jun 2001, Erik Enge wrote: On Tue, 26 Jun 2001, Jerome Alet wrote: Java comes to mind, guess who is the powerful entity ;-) I really can't see that Java has been bastardized by it, though. I was told that some java programs only run under windows, that's what I called bastardization. However I don't know for sure, because I don't use Java: I use a beautiful language instead, and it's called: Python ;-) There sure are python programs that run only under windows too ;) Not that I'd recommend writing them in such a way but it happens, especially if they are developed/debugged under windows only and/or use windows-specific extensions. Banning such extensions also seems stupid, as one of main strengths of python is its extensibility. And the fact that you can't use some stackless python features reasonably under plain c-python does not bother me at all. It would not bother me even if people at Transmeta would make proprietary Crusoe JIT to interpret python bytecodes directly ;) I would say that it would make me very glad instead, even if it causes some python programs make wrong assumptions and thus run prohibitively slow even on 1.4 GHz Athlons . -- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZPL and GPL
Jerome Alet wrote: On Tue, 26 Jun 2001, Anthony Baxter wrote: Jerome Alet wrote I personnally would love to see both Python and Zope be GPLed. Why? No really. Exactly what do you gain from this? Assuming Zope's license becomes GPL compatible, any packages you release you can choose to GPL. Why do you think having the GPL is a good thing for the core package? Ideological reasons? How does releasing under the GPL make the world a better place? Hopefully Zope will soon be considered a universally available system library and this will not matter any more ;) For Zope it's not sure, but for Python, as well as for all what people usually call open source languages, the license of choice should be the GPL, or at least the LGPL, in order for the language in question to not become bastardized by some powerful entity. I see GPL as a good license for GCC and other _compiled_ languages, but for an interpreted language GPL or even LGPL could well be viewed as forcing _anything_ written in it to be forced under *GPL. Even more ridiculous would be the situation where pure python modules can be proprietary but modules written in C must be *GPL (think picle vs cPicle) The problem with plain GPL, as mentionned in my previous message, is that this would make a lot of people run away. However the LGPL seems to be a very good choice, because this wouldn't allow the core (of Python or Zope) to be bastardized with proprietary versions, while still allowing proprietary products/extensions to be created. AFAIK the ability to be bastardized is one of main strengths of python. It would be extremely hard to bastardise the main python (as it requires you to brainwash Guido), but having proprietary (or open-source) versions that behave in some ways differently, like ZODB-python that has transactional persistency seems to be a feature and not a bug of Python license. And yes, a thounsand times yes, I use the GPL for ideological reasons, because I really believe this will make the world a better place. Think global, act local may be a good slogan for software revolutionaries as well ;) I've thought about the LGPL, and doesn't see any argument against it. I just can't see what LGPL would mean for _whole_ works vs. libraries (or lessers as they are called nowadays ;) --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] mxDateTime-based Zope DateTime module
Stephan Richter wrote: Hello everyone, after I got finally frustrated enough with the current implementation of the Zope DateTime module, I decided to write a wrapper for mxDateTime. I checked the license, and the eGenix Public License is GPL compatible, so that we can use it for Zope now. What does being GPL compatible have to do with Zope ? Have I missed some licence changes/discussion ? - Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] SOAP again (or, xml-rpc client for MSIE)
Brad Clements wrote: SOAP, WSDL and UDDI are coming in a big way. I think Zope/Python can compete against MS .Net Services on the server side, but it does make sense to use .Net components on the client, such as the webService behavior for IE. Does it really exist (the webService behavior for IE) or is it jet another vapor coming in a big way ? If it does exist, where can I read amout it ? - Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] SOAP again (or, xml-rpc client for MSIE)
Phil Harris wrote: Brad, There are a few COM/COM+ components around that do xml-rpc. I use them with MS Word to write Word files directly to Zope for instance. Some are better than others, but ymmv so I'll hesitate to recommend one. At least one of them is listed on xmlrpc.com. Having them you could script them via jscript, and basically open up the connection easily. Could you provide a small example ? I'll probably be needing this functionality quite soon ;) Does any of them support https ? Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Adding usernames to ZServer HTTP log output
CATTEAU Olivier wrote: How to activate user tracking? Just show this URL: http://www.zope.org/Members/catteau/UserTracking This seems to work only with BasicAuthentication. Does anybody know a solution that integrates with UserFolders using other authentication methods ? --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: BTreeFolder
Shane Hathaway wrote: However, purely random IDs would cause all the buckets to be loaded in memory all the time, so Jim's third idea was to have each client increment sequentially from a random ID and move to a new random ID if conflicts ever occur. Can't one just assign some unique id to each ZEO client and somehow use _that_ for making up ids ? It would have the added benefit of knowing which client made up which id. --- Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZSQL and Normalized databases (or why ZSQL sucks)
The Doctor What wrote: * Adrian Hungate ([EMAIL PROTECTED]) [010420 05:06]: May be I am misunderstanding your problem here, but are you suggesting that SELECT tab1.col1 col1, tab2.col1 col2 FROM ... etc ... Does not expose 'col1' and 'col2' in the namespace for you? This is not my experience. Ok, I only have about 50 ZSQL methods on my intranet but they are all complex queries with column naming clashes. If it failed to work as you are suggesting, I would not have continued using Zope - Database connectivity was one of my criteria. I mean that: SELECT tab1.col1, tab2.col1 FROM ... etc ... Does not expose 'tab1.col1' and 'tab2.col1'. In otherwords, it doesn't gracefully handle name clashes. I realize that calling out the variable 'tab1.col1' out of the namespace is a pain, but (hopefully) in the future it would be made easier. I suspect it is mainly a problem with SQL ;) amphora2=# select item.item_id, item.ordinal from item where item_id = 15; item_id | ordinal -+- 15 | 0 (1 row) amphora2=# select item.item_type_id, item_type.item_type_id from item,item_type amphora2-# where item_id = 15 and item.item_type_id= item_type.item_type_id; item_type_id | item_type_id --+-- 1 |1 (1 row) The above example is with postgreSQL, but IIRC it is how the SQL standard defines it to behave. Except that perhaps it may forbid one from writing such queries if there is a possibility of both item_type_id's not being the same. - Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Extended characters in Zope
Ausum wrote: I have to deal with documents and its attributes wich have a lot of extended characters in them, like the "" or the hyphened ""..."" vocals in spanish. The ones who download the pages in Windows don't have any trouble. The ones who use Mac will see strange characters, as it might be expected. Updating a page or propertie from a Mac will cause the same problem for Windows users, because Zope doesn't convert the extended characters to the web-friendly format when properties are added. Modern browsers usually understand the charset attribute (and IIRC the default charset for HTML defined in spec is ISO-8859-1 not MAC ;). so just put meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1" in head section and you should be ok Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Did I miss some major change in Z SQL Methods ?
Curtis Maloney wrote: Green things, I have a few methods poking about that just don't seem to make sense A Z SQL Method ( Returner.sql.getDetails ) which simply contains: SELECT * FROM Returner WHERE ReturnerID=dtml-sqlvar User type="int" Which returns everything as expected. The I have a Python Method which refers to it, simply wrapping it up, and taking the first (of what should be only one anyway) element. It contains the following: ( Returner.getDetails(self, User) ) return self.sql.getDetails(User=User)[0] Now.. for some reason, the following throws complaints about not being able to find ANY of the fields in the row: dtml-with "Returner.getDetails(Returner, User=12)" dtml-var fieldName /dtml-with what does : dtml-in "[Returner.getDetails(Returner, User=12)]" dtml-var sequence-item html_quote /dtml-in return ? Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Opensource DBMS for WIN?
Paul Zwarts wrote: Greetings, Was wondering if there was an open source dbms to use with Zope on a Win2k machine...? I found references of using cygwin to run PGSQL (which we have on our unixbox) but would prefer something that doesnt run over an extender-shell... For smaller tasks you could use MySQL or even Gadfly (included with Zope) mSQL is also to be resurrected but I'm not sure it will run on windows. But if you have a machine beefy enogh for Win2k a small extender-shell (or rather a compatibility layer) should make no difference ;) You could also consider Interbase or SapDB but they are probably not yet stable. Or if you want to get really exotic you can run VMware to run linux and run any free database there ;) Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.3.0b2 bug #2
Oleg Broytmann wrote: On Mon, 22 Jan 2001, Dieter Maurer wrote: Oleg Broytmann writes: Hm, will you fix my browser, too? I am using Netscape for Linux, don't know how well it plays with Unicode. I suppose it plays bad :( We use Netscape (4.5, 4.7; Linux, Windows) with "charset=utf-8" and it handles it well. Good news, thanks. Are there (free) Unicode fonts for X? If your X server supports ttf you could use the ones from windows (or microsoft website). You could also use the Bitstream Cyberbit fonts that are available at least from ftp://ftp.funet.fi/pub/mirrors/ftp.netscape.com/pub/communicator/extras/fonts/windows/ I'm not sure about their legal status though ;( What should I do if I want to save an HTML to disk? (I want plain text, of course, in my preferred encoding... probably need to write Unicode-to-koi8 converter) That should be trivial in python 2.0 -- Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] [2nd try] dtml-tree causing authorization errors
[EMAIL PROTECTED] wrote: [ I accidentally sent the last mail before I completed it... Sorry ] I've stumbled upon a strange problem with dtml-tree in version 2.2.5 (the problems occurs in the same way in any of the 2.2.x version), but didn't exhibit itself in 2.1.6: Here's some (very) crude code to generate a tree object: - class Tree: def __init__(self, val='top'): self.name = val self.tpId = val def tpValues(self): tlist = [] for i in range(8): tlist.append(Tree('me: %s' % i)) return tlist def build(): return Tree() -- Now if I attach this to an "External Method" called "mytree" which references the function "build()", and I write the following DTML: - dtml-tree mytree dtml-var name /dtml-tree - Have you tried: dtml-tree mytree dtml-var "_.['name']" /dtml-tree Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: Workflow and document management system in Zope
Nicolas Pettiaux wrote: I am looking for a workflow (WF) linked to a electronic document management (EDM) system and a groupware email based (I have just happened to come accross aethera from the Kompany) that would be free software and preferably in Zope + Python. The WF+DEM system I am looking for need to be usable with only a browser (to be independant from the client ... that could be proprietary !), store its data into a postgresql database. You could check out Amphora which should do most of what you suggest. And it is based on Zope+Postgres. the main info page is at http://www.amphora.ee/ (unfortunately in estonian only ;) but you can check out demo which is either in english or estonian (depending on your browser language settings) at https://demo.amphora.ee/amphora/classic/ password:demo and username:demo It is not completely opensource though but is available with development license. - Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Important Fix for Zope 2.0 through 2.1.6
Evan Simpson wrote: Thanks to Jeff Ragsdale, we've finally been able to kill a longstanding bug that allows POST requests to interfere with each other. Symptoms include corrupted or aborted File and Image uploads, and stupid-log messages about "AttributeError: data" killing threads. Could something similar be happening in PCGIServer too ? We are getting some weird and hard-to-reproduce errors when activity goes up and several file uploads are going on simultaneously? --- Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] authentication II
Olaf Zanger wrote: hi everybody, after a long 10h struggle with installing and running zope i found some interesting things. may anybody be able to explain these to me? i run a suse7.0 system with a suse zope installation on 8080. i changed the access file to a new account name. with this account name i can do everything in zope, add users, add files, copy, paste ... if i add a new user i can not login for adding files ... aren't they made for that? You can use them for anything ;) What each can do is determined by their roles. do i understand anything wrong? are they probably only for content access? What roles did you give to these new users ? -- Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] XML-RPC
David Nimmons wrote: I am trying to develop a web based interface to automation equipment (Allen Bradley plc's in this case) to use for an operator interface. I am using SVG to develop graphics and want to use javascript to manipulate the graphics based on data from the plc. I am looking for a way to pull more data from the server without having to reload the page. My question is will XML-RPC allow this. Or does Zope have some other mechanism that would allow this. Thanks for any help. Actually this is mainly a client-side problem, on server side you have total freedom to serve any protocol ;) Often this kind of problem is solved by having twho frames and data is aquired by reloading the "data-page" which then manipulates the "presentation-page" using javascript, possibly in its onLoad method. Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] which python gets used ... ?
Chris Withers wrote: Jonathan Cheyne wrote: So the question is: can I run zope using the stock RH6.2 distributions' own copy of python? If it's Python 1.5.2, then yes... there's probably instructiosn for this on Zope.org near the bits about insatlling Zope from source on Linux. IIRC there used to be subtle bugs, like batch processing in DTML giving wrong page numbers --- Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] 'Offline' mailhost
Chris Withers wrote: Shane Hathaway wrote: I'm not sure how well MailHost scales, but you can certainly store thousands of names in a ZODB-managed list. Tests done for the BTreeFolder product prove it. Sadly, I think MailHost doesn't scale too well :-( What it'd need to do if you're sending the mail to a few thousand people is to be non-blocking. IIRC, currently, a method/page with a dtml-in addressessendmail/dtml-in tag pair in it will only return when the mail has been sent to all the recipients. So, if the mails going to lots of people, the page takes ages to return. Perhaps it would be better to solve this by configuring your sendmail (or other SMTP MTA) to be non-blocking, i.e. store-and-forward. Also you could send just one message to all the recipients instead of sending individual messages. This is the problem I had where our mail server was taking lots of time to send messages (it was doing lots of stuff to make sure the address was valid) so submitting posts on Squishdot.org was taking ages too. What, IMHO, is really needed is a mailhost/sendmail tag type thing that gets a message and a list of addresses to send it to. If it could do that in a seperate thread/process/whatever so that whatever calls it doesn't block, that'd be great. Of course, it'd need to have a 'hook back' method provided so any errors that occured could be dealt with. I wonder how mailman does this stuff and if the code could be borrowed for Zope? Maybe you could just use mailman as MTA, greating temporary mailing-lists. Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope and the GPL poison pill
Magnus Alvestad wrote: [Danny William Adair] | Now Nils and Oleg are giving me the creeps. There are several issues here. First, it is not obvious that including one GPL'ed product in a zope site and then distributing that site obliges you to distribute any further source code. Only if you (embrace and) extend that specific product would the GPL hit you. That's LGPL, GPL affects anything _linked_ to it ;( Second, even if it does, remember that a zope site almost always includes source anyway. I guess the exception would be if you have binary-only python files or linked pre-compiled c-code or something like that. But it would be very hard to claim that those parts were 'infected' by a product on your site being GPL'ed. LGPL would be fine, but GPL directly affects anything "linked" to/with it. As GPL has never (AFAIK) been tested in court the whole discussion may be moot, but otherways you are in muddy waters if you use GPL'd modules and don't make all your source available. It _may_ be possible to separate your site into code, content and docs, but still at least whole source code is affected, perhaps contents too, depending on how you/RMS/judge sees it. Third, you are only obligated to distribute source to parties you have already distributed the binary version to. I can't really see a customer buying a zope site from you and not expecting 'source' anyway. I can see only two reasons (except extortion) for not providing the code - 1. extremely bad code and 2. some really nifty invention (here a patent would serve you better anyway) -- Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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-dev] why is manage_addZSQLMethod unavailable ?
Why does this work dtml-call "_['testadd'].manage_addDTMLMethod('MethodId', 'Method Title','method text')" While this does not: dtml-call "_['testadd'].manage_addZSQLMethod('ZSQLID', 'ZSQL Title', 'DB','','select * from data')" Error Type: AttributeError Error Value: manage_addZSQLMethod I studies the Znolk product and found that it uses _setObject directly instead of manage_addZSQLMethod . I was able to overcome it by defining an one-line external method: - from Products.ZSQLMethods.SQL import * def manage_addZSQLMethod(self, sqlId, sqlTitle, connection_id, args, command): self._setObject(sqlId, SQL(sqlId, sqlTitle, connection_id, args, command)) - but it IMHO the visibility of manage_addDTMLMethod and manage_addZSQLMethod _should_ be the same ? - Hannu ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] manage_addDTMLMethod vs. manage_addZSQLMethod
Why does this work dtml-call "_['testadd'].manage_addDTMLMethod('MethodId', 'Method Title','method text')" While this does not: dtml-call "_['testadd'].manage_addZSQLMethod('DB', 'DB', 'DB','DB','DB')" (the database connection DB is there) I studies the Znolk product and found that it uses _setObject directly instead of manage_addZSQLMethod . Should I just wrap _setObject into an external method (to make it visible) and start using it or is there a simpler way ? - Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] MySQL transaction support (was: MySQL Select Statements)
Andy Dustman wrote: There are two factors which determine whether or not transactions can be supported. Actually, there's only one, but it can't be directly tested for: 1) If the server version (easily obtained upon establishing the connection) is 3.23.15, transactions are definitely not supported. 2) If the database in use employs BDB tables, transactions are definitely supported. AFAIK the transaction support is enabled on table-by-table basis, so there is no way to know for sure if transactions are supported/partially-supported/unsupported for a particular set of queries The problem is: Support for the transaction manager is done with a MixIN class, so the decision on whether or not transactions should be supported in the DA comes before the connection object is created. But after the connection is established you could probably change the mixin class, at least if it is really a proxy wrapper of some other class. Python is _very_ dynamic language. Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How-to Bypass DTML Code?
"Nestor A. Diaz L." wrote: Hi, anyone know how to bypass the dtml-code, that's because i'm writing a howto with showing the use of some "dtml-tags" so it tries to interpreting it rather than only showing them. try this pre dtml-var "_.str(your_code_sample" pre --- Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Thread-safe PostgreSQL adaptor?
[EMAIL PROTECTED] wrote: try also, ZPoPyDA ZPoPyDA is a *stable* Postgresql Database Adapter for Zope based on our driver PoPy. It aims to replace the current ZPygresql DA. This database adapter is released under the GPL Licence. AFAIK this is the only DA with GPL license. Both Zope and python have much freer licenses making GPL probably a poor choice if you "aims to replace the current ZPygresql DA". What is the reason behind GPL'ing it ? If you you hope to make money selling commercial licences I doubt it will work. Many peaople are afraid of contaminating their work with smallish GPL products and would rather use inferior but free products. You can get the tarball at http://www.mixadlive.com/software Thanks - Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Thread-safe PostgreSQL adaptor?
Hannu Krosing wrote: [EMAIL PROTECTED] wrote: try also, ZPoPyDA ZPoPyDA is a *stable* Postgresql Database Adapter for Zope based on our driver PoPy. It aims to replace the current ZPygresql DA. This database adapter is released under the GPL Licence. AFAIK this is the only DA with GPL license. and only ODBC driver has LGPL license (the "Lesser" or "Library" GPL which leaves you much more freedom than the stock GPL). Both Zope and python have much freer licenses making GPL probably a poor choice if you "aims to replace the current ZPygresql DA". IMHO, if you want it to fly you should either use PostgreSQL or Python license for PoPy and either Python or Zope license for ZPoPyDA. -- Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Thread-safe PostgreSQL adaptor?
Oleg Broytmann wrote: Hi! On Thu, 1 Jun 2000, Hannu Krosing wrote: AFAIK this is the only DA with GPL license. Both Zope and python have much freer licenses making GPL probably a poor choice if you "aims to replace the current ZPygresql DA". What is the reason behind GPL'ing it ? Aha, well, the GPL-vs-BSD-vs-MPL-vs...! :))) As PostgreSQL mailing list member you (like me) saw these debates many times. I don't think we need to continue the flame here :) True. The problem is that in some perverted fashion it seems to me that if I use a GPL library with something the whole thing should go GPL, i.e. my use of ZPoPyDA could make me obliged to distribute Zope under GPL, which I of course can't do and thus i start feeling scizophrenic ;) There are people who loke BSD-style licensing, and there are GPL devotee. In this far-from-ideal world it is hard to say what is more free. I, personnaly, love GPL and publish whatever I can under GPL. I personally don't have anything against (L)GPL either, its just my gut feeling that having _multiple_ potentially clashing licenses inside what should be ideally one package is confusing as the interactions of licenses can't be understood by noone ;) -- Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Interbase / Cacheing - A thought
Ian Sparks wrote: Had a thought that I wanted to share. Interbase has a feature known as "event alerts". In a trigger you can post "events" which are just fixed data strings e.g. "DataAdded" or "Insert_tblUsers". PostgreSQL has them too. It's not (afaik) supported by DB-API, but could be used in a DA that talks to some lower level API. A client database connection can register to listen to these events. I don't know if any Zopeish Interbase access method supports this (ODBC doesn't to my knowledge) but it would be incredibly useful for synching cached database objects. Zope could hold a representation of the table data in cached objects for quick access. Each object could have one or more "event" methods which related to a database event. When the database adaptor received an event message from Interbase it could inform all objects with a matching event method (these methods would refresh their cached data with current values from the database). In this way database and Zope cache could be synced *without* having to poll the database at an interval. In all, a very efficient mechanism. Just an idea I wanted to put out there. Thanks for getting it out. I have been contemplating the same for PostgreSQL but have been too lazy to do it myself ;) -- Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Interbase / Cacheing - A thought
Cary O'Brien wrote: Ian Sparks wrote: Had a thought that I wanted to share. Interbase has a feature known as "event alerts". In a trigger you can post "events" which are just fixed data strings e.g. "DataAdded" or "Insert_tblUsers". PostgreSQL has them too. It's not (afaik) supported by DB-API, but could be used in a DA that talks to some lower level API. They are supported by the TCL interface that comes with PostgreSQL (src/interfaces/libpgtcl in the PostgreSQL source tree) if you are looking for examples of how they work. (Search for listen and notify in pgtclCmds.c The lower level python interfaces (_pg, pg) support them too. - Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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] Interbase / Cacheing - A thought
Ian Sparks wrote: Hannu, Does PostgresSQL allow you to have dynamic events? By this I mean can you do things like : PostEvent "Update_tblUsers_Record_" + new.RecordID; No, but it may change sometime (possibly soon) as PostgreSQL is an open-source product ... I believe that in Interbase the events are compiled into the trigger, not interpreted at Runtime so you can't have an Interbase event alert you to a change in a particular record, only that a change has occurred on a table. The same is true for postgrSQL, only the syntax is LISTEN/NOTIFY. Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** 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: [Zope-Annce] ANN: Perl For Zope - why I'm bummed
Kevin Dangoor wrote: I haven't heard of anyone standing up and saying "I'm not going to use Linux, because people might write tools in perl [or awk, or C, or lisp, or sh, or yacc or postscript, or ...]" Perhaps that's a better way to look at Zope... not as a python web application, but as a high-level OS extension for dynamic web applications. The metaphore seems quite right! Some of its most significant features (Aquiition, ExtensionClass) are even written in C and mess with guts of python interpreter. See for example PostgreSQL - it has C, SQL, PL/SQL, TCL, Perl, Ruby and soon python as its server-side programming languages, with no real argument about weather to include yet another language - if you dont want/need/know how to use it you just ignore it ;) And it was originally written in lisp ;-9 - Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Using Cookie Data
Jim wrote: I have a cookie that contains the value of an psql key as its value. I want to retrieve the value and use it to call the psql query method to retrieve the data. The code that I am currently using is dtml-in qryGetCustomer(REQUEST.cookies[Company_Name)] try quotes: dtml-in "qryGetCustomer(REQUEST.cookies[Company_Name])" The company record has been retrieved for dtml-var company_name.br /dtml-in - Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )