[Zope-Coders] Zope tests: 8 OK

2005-10-19 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Tue Oct 18 11:01:01 2005 UTC to Wed Oct 19 11:01:01 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Tue Oct 18 22:27:01 EDT

Re: [Zope-dev] Mountpoints

2005-10-19 Thread Jim Fulton
Tim Peters wrote: [Chris McDonough] I think I may need some remedial SVN help because I don't want to do this in a stupid way. Hopefully someone will be willing to guide me through this. I'll be in FB tomorrow if you'd like to pair on it (while in theory Jim might object, I think he thinks

Re: [Zope-dev] Mountpoints

2005-10-19 Thread Tim Peters
... [Chris McDonough] Thanks for the offer! I won't be able to visit ZC world HQ tomorrow, though unless you'd be there and willing to start around 10pm. Alas, they're still under the delusion that 10 _am_ is late here, so while I agree 10pm is saner on all counts, I'll be gone before then.

[Zope-dev] Re: [Zope-CMF] Re: RestrictedPython, TALES Expressions and CMF

2005-10-19 Thread Dieter Maurer
Tres Seaver wrote at 2005-10-16 14:22 -0400: ... Probably, because they can bind the DTML namespace... I knew that they *could* bind it; it just don't understand why anyone would *want* that feature, given the availability of the other, non-ambiguous bindings. I know that I used it

Re: [Zope-dev] Mountpoints

2005-10-19 Thread Tim Peters
[Chris McDonough] There is a wrinkle about performing this merge that eluded my memory until now. To support multidatabases within Zope, it was reasonable to change ZODB.config.ZODBDatabase to support the heretofore likely-unused-by-real-world-code databases and database_name options that

Re: [ZWeb] Re: [Zope.org-internal] Re: [Zopeorg-webmaster] Downloadof Zope 2.8.3 is not possible

2005-10-19 Thread Jim Fulton
Andrew Sawyers wrote: Ok guys. I'm willing to eat a little crow on this one. I blame it on being on a lap top on prone to mucho interruptions (excuse mode off). The condition for this was actually more then the response I originally thought. When a unauthorized page is accessed on

Re: [ZWeb] Re: [Zope.org-internal] Re: [Zopeorg-webmaster] Download of Zope 2.8.3 is not possible

2005-10-19 Thread Jim Fulton
Sidnei da Silva wrote: On Wed, Oct 19, 2005 at 03:25:11PM -0400, Jim Fulton wrote: | - The product product has the *insane* policy that if any files aren't | published, the entire product is inaccessible. | | Does anyone know how to fix this? Is there a knob for this somewhere in | CMF?

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-19 Thread Anders Bruun Olsen
On Tue, Oct 18, 2005 at 08:47:23PM -0500, J Cameron Cooper wrote: error_log is by default set to ignore three common types of exceptions. You should remove NotFound from the list if you're getting NotFound exceptions and want to see them. Ahhh.. Thanks, now I have a traceback, unfortunately

Re: [Zope] A Flash file in Zope262

2005-10-19 Thread Chris Withers
J Cameron Cooper wrote: GAYOT Philippe SZSIC35 - BOM wrote: I want to show a Flash file in my home's page under ZopeCMF 262. Could anyone tell me the best way to do that ? It is precisely no different from the way you would do it with any other web server, except that the Flash movie comes

Re: [Zope] Display images stored in Relational DB

2005-10-19 Thread Chris Withers
Thomas G. Apostolou wrote: I have an External Method GetPrList witch is connected to a python module that reads like this You really want to be uxing mxODBC and it's Zope DA... X.SODATA is jpg stored in SQL 2K in a field degined as [SODATA] [image] NULL Bleugh... binary data in RBDs suck

Re: [Zope] Zope Debugger lets WingDbg fail to connect toclient

2005-10-19 Thread Chris Withers
Stephan Deibel wrote: You can turn on and off debugging from the WingDBG control panel which installs/removes the tracer hook and also the monkey patches. When off, it's the same as if no debugger were running (except that WingDBG lets you turn it on again dynamically). Is the WingDBG

Re: [Zope] database connections from external method

2005-10-19 Thread Tino Wildenhain
Vangelis Mihalopoulos schrieb: Hi, I want an external method to access a mysql database on each call. For now, i open up a new connection on every call, but this probably won't scale much either on performance (new connection on each call is quite an overhead) or availability (the number of

Re: [Zope] database connections from external method

2005-10-19 Thread Vangelis Mihalopoulos
Tino Wildenhain wrote: The threading is handled by the ZDA, so you can use query() or what the method actually is. I couldn't find a method like that... any hints? Otoh, what do you think you gain from circumventing ZSQL Methods? Well, i am running zope under root privileges in read-only

Re: [Zope] database connections from external method

2005-10-19 Thread Jens Vagelpohl
Otoh, what do you think you gain from circumventing ZSQL Methods? Well, i am running zope under root privileges in read-only mode. If there is a Zope break-in, i want to minimize interference with the database. Also, since this will be a commercial product, keeping most of the code in

[Zope] Showing image field from SQL Server 2K

2005-10-19 Thread Thomas G. Apostolou
How can i show image field from SQL Server 2K? Do i have to select and show it with a special way? Thomas G. Apostolou Software Engineer Θωμάς Γ. Αποστόλου Μηχανικός Λογισμικού ___ Zope maillist - Zope@zope.org

Re: [Zope] write file to FS (LocalFS?)

2005-10-19 Thread Chris Withers
Rakotomandimby Mihamina wrote: I am on a unix-like operating system, Zope 2.8, CMF, CPS (SVN Trunk). I would like users to be abble to write some file on the filesystem. Why? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope] write file to FS (LocalFS?)

2005-10-19 Thread Rakotomandimby Mihamina
On Wed, 2005-10-19 at 13:44 +0100, Chris Withers wrote: Rakotomandimby Mihamina wrote: I am on a unix-like operating system, Zope 2.8, CMF, CPS (SVN Trunk). I would like users to be abble to write some file on the filesystem. Why? I manage a group of users on a Unix system. They also have

Re: [Zope] Showing image field from SQL Server 2K

2005-10-19 Thread Chris Withers
Thomas G. Apostolou wrote: How can i show image field from SQL Server 2K? Do i have to select and show it with a special way? Yes, I already answered you about this earlier: http://mail.zope.org/pipermail/zope/2005-October/162375.html cheers, Chris -- Simplistix - Content Management, Zope

Re: [Zope] now learning zpt

2005-10-19 Thread Chris Withers
Hi Gary, Garry Saddington wrote: Having had a bit of a lambasting over my use of dtml, I have started to learn zpt. Congratulations, welcome to the zLight ;-) However, I am curious about the following: How do you do the equivalent of name=comp.name:records to submit multiple values to

[Zope] Pass dtml-var sequence-item as parameter to External Method

2005-10-19 Thread Thomas G. Apostolou
I have an External Method CharSetConv that get a String_To_Be_Converted, its encoding and the encoding to convert it to. I call it like this: dtml-in sequence-item tddtml-var expr=CharSetConv(_, 'String_To_Be_Converted', 'ISO-8859-7', 'UTF-8') /td /dtml-in but in the place of

Re: [Zope] Pass dtml-var sequence-item as parameter to External Method

2005-10-19 Thread Tino Wildenhain
Thomas G. Apostolou schrieb: I have an External Method CharSetConv that get a String_To_Be_Converted, its encoding and the encoding to convert it to. I call it like this: dtml-in sequence-item tddtml-var expr=CharSetConv(_, 'String_To_Be_Converted', 'ISO-8859-7', 'UTF-8') /td

Re: [Zope] Pass dtml-var sequence-item as parameter to External Method

2005-10-19 Thread Jonathan
- Original Message - From: Thomas G. Apostolou [EMAIL PROTECTED] I have an External Method CharSetConv that get a String_To_Be_Converted, its encoding and the encoding to convert it to. I call it like this: dtml-in sequence-item tddtml-var expr=CharSetConv(_,

Re: [Zope] Display images stored in Relational DB

2005-10-19 Thread Thomas G. Apostolou
Αρχικό μήνυμα από Chris Withers [EMAIL PROTECTED]: Thomas G. Apostolou wrote: I have an External Method GetPrList witch is connected to a python module that reads like this You really want to be uxing mxODBC and it's Zope DA... X.SODATA is jpg stored in SQL 2K in a field degined as

[Zope] inheriting from SimpleUserFolder's User

2005-10-19 Thread Jürgen Herrmann
hello! i use the SimpleUserFolder product and derive a MyUser class from it's included User class, which in turn inherits from BasicUser. the SimpleUserFolder's User class does neither reimplement getRolesInContext() nor allowed(). i looked at the source of BasicUser

Re: [Zope] Pass dtml-var sequence-item as parameter to External Method

2005-10-19 Thread Thomas G. Apostolou
Αρχικό μήνυμα από Tino Wildenhain [EMAIL PROTECTED]: Thomas G. Apostolou schrieb: I have an External Method CharSetConv that get a String_To_Be_Converted, its encoding and the encoding to convert it to. I call it like this: dtml-in sequence-item tddtml-var

Re: [Zope] Pass dtml-var sequence-item as parameter to External Method

2005-10-19 Thread Tino Wildenhain
Thomas G. Apostolou schrieb: Αρχικό μήνυμα από Tino Wildenhain [EMAIL PROTECTED]: Thomas G. Apostolou schrieb: I have an External Method CharSetConv that get a String_To_Be_Converted, its encoding and the encoding to convert it to. I call it like this: dtml-in sequence-item

Re: [Zope] Pass dtml-var sequence-item as parameter to External Method

2005-10-19 Thread Thomas G. Apostolou
Αρχικό μήνυμα από Tino Wildenhain [EMAIL PROTECTED]: Thomas G. Apostolou schrieb: Αρχικό μήνυμα από Tino Wildenhain [EMAIL PROTECTED]: Thomas G. Apostolou schrieb: I have an External Method CharSetConv that get a String_To_Be_Converted, its encoding and the encoding to convert

Re: [Zope] Pass dtml-var sequence-item as parameter to External Method

2005-10-19 Thread Tino Wildenhain
... which is the quick dirty variant, or: dtml-var expr=(_['sequence-item'] or ).decode('iso-8859-7').encode('utf-8') Which uses a boolean trick. HTH Tino PS: get used to python scripts where this is a lot better to write I agree with you and i would write this in python script (if

Re: [Zope] Pass dtml-var sequence-item as parameter to External Method

2005-10-19 Thread Thomas G. Apostolou
Αρχικό μήνυμα από Tino Wildenhain [EMAIL PROTECTED]: ... which is the quick dirty variant, or: dtml-var expr=(_['sequence-item'] or ).decode('iso-8859-7').encode('utf-8') Which uses a boolean trick. HTH Tino PS: get used to python scripts where this is a lot better to write

Re: [Zope] now learning zpt

2005-10-19 Thread Garry Saddington
Chris Withers wrote: Hi Gary, Garry Saddington wrote: Having had a bit of a lambasting over my use of dtml, I have started to learn zpt. Congratulations, welcome to the zLight ;-) However, I am curious about the following: How do you do the equivalent of name=comp.name:records to

Re: [Zope] database connections from external method

2005-10-19 Thread J Cameron Cooper
Vangelis Mihalopoulos wrote: Tino Wildenhain wrote: The threading is handled by the ZDA, so you can use query() or what the method actually is. I couldn't find a method like that... any hints? It is indeed the 'query' method, which you pass a string with SQL. It comes from

[Zope] Re: inheriting from SimpleUserFolder's User

2005-10-19 Thread Florent Guillaume
Jürgen Herrmann wrote: i use the SimpleUserFolder product and derive a MyUser class from it's included User class, which in turn inherits from BasicUser. the SimpleUserFolder's User class does neither reimplement getRolesInContext() nor allowed(). i looked at the source of BasicUser

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-19 Thread Dieter Maurer
Anders Bruun Olsen wrote at 2005-10-17 00:59 +0200: Zope has encountered a problem publishing your object. Cannot locate object at: http://localhost:8080/vitester/asonhe This is a NotFound problem. Zope is unable to locate vitester/asonhe Are you sure, vitester/asonhe is there?

Re: [Zope] database connections from external method

2005-10-19 Thread Dieter Maurer
Vangelis Mihalopoulos wrote at 2005-10-19 12:22 +0300: ... I am thinking of using a Z Database Connection (mysql) from within an external method, without using Z SQL Methods, but can't figure out how i can safely do it Calling a DA object gives you a low level connection object (a db object).

Re: [Zope] Deleting objects from an external method

2005-10-19 Thread Dieter Maurer
Nikko Wolf wrote at 2005-10-17 16:21 -0600: ... File /usr/local/zinstance/Products/CMFPlone/PloneFolder.py, line 306, in manage_delObjects raise Unauthorized, ( Unauthorized: Do not have permissions to remove this object This obviously is the Plone implementation of manage_delObjects --

Re: [Zope] inheriting from SimpleUserFolder's User

2005-10-19 Thread Dieter Maurer
Jürgen Herrmann wrote at 2005-10-19 15:34 +0200: i use the SimpleUserFolder product and derive a MyUser class from it's included User class, which in turn inherits from BasicUser. the SimpleUserFolder's User class does neither reimplement getRolesInContext() nor allowed(). i looked at the source

[Zope] Re: Hello

2005-10-19 Thread Pierre Thibault
Andrew Milton a écrit : +---[ Pierre Thibault ]-- | Hello, | | Is someone reading this message? Yes. Hello Andrew all, I am new to Zope. So I would like to learn. On the Zope website it is written to do the tutorials bundle with the Zope installation but where

[Zope] ANN: ZSyncer 0.7-beta2

2005-10-19 Thread Paul Winkler
There were a couple of bugs in beta1. I've just released beta2. It also includes a working CMF folder status action for ZSyncerTool (replacing the useless stub that was there.) Get it here: http://sourceforge.net/project/shownotes.php?release_id=364738 About ZSyncer: ZSyncer is a project that

Re: [Zope-DB] DB2 timestamp fields problem - server crashes

2005-10-19 Thread Gergana Silvanova
Hi Chris, I am using the Zope DB2 adapter from Blue Dynamics (ZDB2DA). Best wishes, Iliyana --- Chris Withers [EMAIL PROTECTED] wrote: Gergana Silvanova wrote: I have problems with Zope and IBM DB2. Seems like, when I select timestamp fields from the DB2 database, the Zope server

[Zope-DB] DCOracle2, Oracle 10g and Long data type

2005-10-19 Thread Seth Gottlieb
I have heard that people are successfully using DCOracle2 against Oracle 10g. I was able to get it working but I seem to be getting a Oracle error (ORA-21301: not initialized in object mode) when trying to write to a Long datatype. BTW, I am using dtml-sqlvar type 'string' in my SQL