[Zope] get non-acquired attributes of an instance

2006-06-26 Thread thomas desvenain
hello, is it possible to get the list of all an object's attributes, excepted the ones acquired from parents ? thanks -- Thomas Desvenain Junior Plone/Zope analyst-developer, Looking for a Job ! Now, trainee at Institut National de Recherche Agronomique Mathématiques, Informatique et Génôme

Re: [Zope] get non-acquired attributes of an instance

2006-06-26 Thread Andreas Jung
--On 26. Juni 2006 10:30:50 +0200 thomas desvenain [EMAIL PROTECTED] wrote: hello, is it possible to get the list of all an object's attributes, excepted the ones acquired from parents ? aq_base(aq_inner(obj)).__dict__ ? -aj pgpMviKcFFgYC.pgp Description: PGP signature

Re: [Zope] get non-acquired attributes of an instance

2006-06-26 Thread thomas desvenain
aq_base(aq_inner(obj)).__dict__ ? hmm it doesn't works, i get metadata only, and with dir(aq_base(aq_inner(test.toto))) i get acquired methods too... 2006/6/26, Andreas Jung [EMAIL PROTECTED]: --On 26. Juni 2006 10:30:50 +0200 thomas desvenain [EMAIL PROTECTED] wrote: hello, is it

Re: [Zope] get non-acquired attributes of an instance

2006-06-26 Thread Andreas Jung
--On 26. Juni 2006 10:53:39 +0200 thomas desvenain [EMAIL PROTECTED] wrote: aq_base(aq_inner(obj)).__dict__ ? hmm it doesn't works, i get metadata only, 'metadata'? This is an unkown term in the context of Zope/Python objects except for catalog brain objects...what you you mean? and

Re: [Zope] No joy on 8080.

2006-06-26 Thread Chris Withers
Ignacio Valdes wrote: Here is my event.log file: 2006-06-25T21:12:21 INFO ZServer HTTP server started at Sun Jun 25 21:12:21 2006 Hostname: dune Port: 8080 Have you tried: lynx http://dune:8080 ...from an ssh session on the box? If that works, I'd suggest some kind of

[Zope] Re: No joy on 8080.

2006-06-26 Thread Duncan Booth
Ignacio Valdes wrote: This is all on a headless server by ssh so I can't check http://localhost:8080 but http://server ip address:8080 on my browser doesn't work. Maybe there is a firewall blocking your access to port 8080 on the server. Try using wget running on the server to fetch the

[Zope] Content Disposition - Download files

2006-06-26 Thread Bruno Grampa
Hello, i want to send an image or a pdf to a browser not for viewing but for downloading. I've written this code: dtml-call RESPONSE.setHeader('Content-type', 'application/force-download') dtml-call RESPONSE.setHeader('Content-Disposition', 'attachment; filename=filename.gif') now i have to send

Re: [Zope] Content Disposition - Download files

2006-06-26 Thread Tino Wildenhain
Bruno Grampa schrieb: Hello, i want to send an image or a pdf to a browser not for viewing but for downloading. I've written this code: dtml-call RESPONSE.setHeader('Content-type', 'application/force-download') dtml-call RESPONSE.setHeader('Content-Disposition', 'attachment;

[Zope] Zope not sending images problem

2006-06-26 Thread Aidas Dailidė
Hi there, I've installed 2.7.8 on OS X Server and added some Zope product. The problem is that the web page works fine from localhost, but from remote hosts it fails to load some random images. HTML loads quickly and without any problems. What could be wrong? Sometimes some of the images load

Re: [Zope] get non-acquired attributes of an instance

2006-06-26 Thread thomas desvenain
2006/6/26, Andreas Jung [EMAIL PROTECTED]: --On 26. Juni 2006 10:53:39 +0200 thomas desvenain [EMAIL PROTECTED] wrote: aq_base(aq_inner(obj)).__dict__ ? hmm it doesn't works, i get metadata only, 'metadata'? This is an unkown term in the context of Zope/Python objects except for catalog

Re: [Zope] Searching for and displaying properties

2006-06-26 Thread Jonathan
manage_addProperty does not trigger recataloguing of the object even if its a subclass of CatalogAwareness. You should ? either call obj.reindex_object() or at least obj.index_object(), if your class has the CatalogAwareness-Mixin or you use the catalog API:

Re: [Zope] Content Disposition - Download files

2006-06-26 Thread Bruno Grampa
Hello, i want to send an image or a pdf to a browser not for viewing but for downloading. I've written this code: dtml-call RESPONSE.setHeader('Content-type', 'application/force-download') dtml-call RESPONSE.setHeader('Content-Disposition', 'attachment; filename=filename.gif') now i have

[Zope] OracleStorage - DCOracle2

2006-06-26 Thread jagarrido
Hi all!! I need save the zope objects in an Oracle 8.1.7 Database,who I'm trying do it with DCOracle2 Product. My initial problem is I need save objects in Oracle Database who reside in other machine distinc Zope resides. Due to it, I have a compilation problem because Oracle server resides in

[Zope] Re: Import Modules

2006-06-26 Thread Luiz Fernando B. Ribeiro
Florent Guillaume escreveu: Andreas Jung wrote: I manage my own servers developing web applications and I would like to remove the import restrictions of python modules in python scripts. Is it possible? How can I allow other modules to be imported? I have been using external modules but

Re: [Zope] OracleStorage - DCOracle2

2006-06-26 Thread Jonathan
- Original Message - From: [EMAIL PROTECTED] To: zope@zope.org Sent: Monday, June 26, 2006 8:21 AM Subject: [Zope] OracleStorage - DCOracle2 Hi all!! I need save the zope objects in an Oracle 8.1.7 Database,who I'm trying do it with DCOracle2 Product. My initial problem is I need

Re: [Zope] No joy on 8080.

2006-06-26 Thread Ignacio Valdes
Yes, that works so probably firewall. -- IV On Mon, 26 Jun 2006 11:16:21 +0100 Chris Withers [EMAIL PROTECTED] wrote: Ignacio Valdes wrote: Here is my event.log file: 2006-06-25T21:12:21 INFO ZServer HTTP server started at Sun Jun 25 21:12:21 2006 Hostname: dune Port: 8080

[Zope] Problem running zopectl

2006-06-26 Thread Mike B
I'm getting the following error message when I try to run zopectl. I've googled it and looked through the archives but found nothing. Any help would be appreciated. I'm running python 2.4.3 and zope 2.9.3. Traceback (most recent call last): File

Re: [Zope] get non-acquired attributes of an instance

2006-06-26 Thread Andreas Jung
--On 26. Juni 2006 13:37:46 +0200 thomas desvenain [EMAIL PROTECTED] wrote: 'metadata'? This is an unkown term in the context of Zope/Python objects except for catalog brain objects...what you you mean? sorry, it's because i work with at/plone objects : toto.__dict__ displays only some

Re: [Zope] Re: Import Modules

2006-06-26 Thread Andreas Jung
--On 26. Juni 2006 09:41:44 -0300 Luiz Fernando B. Ribeiro [EMAIL PROTECTED] wrote: I'm amazed that the example given in the Products/PythonScripts/README.txt (using re) doesn't work, why is it there? Why isn't it working? As I stated earlier: allow_module() is not a general solution. It

Re: [Zope] Content Disposition - Download files

2006-06-26 Thread Chris Withers
Bruno Grampa wrote: now i have to send the file as a binary flow, but i don't know how to do. Can you help me? Maybe if you stop torturing yourself (and us!) with dtml. The above should be either an external method, or a method of a content object from a product. cheers, Chris --

Re: [Zope] Improved Zope Org Proposal

2006-06-26 Thread Chris Withers
Andrew Sawyers wrote: It then came to technology. Some cared some didn't. I personally didn't if the result was something which the community could be proud of and not make excuses for as they directed people to the site. I'd add the caveat that it needs to be stable maintainable software

Re: [Zope] Zope not sending images problem

2006-06-26 Thread Chris Withers
Aidas Dailidė wrote: I've installed 2.7.8 on OS X Server and added some Zope product. The problem is that the web page works fine from localhost, but from remote hosts it fails to load some random images. HTML loads quickly and without any problems. What could be wrong? Sometimes some of the

Re: [Zope] Content Disposition - Download files

2006-06-26 Thread Tino Wildenhain
context.REQUEST.RESPONSE.setHeader('Content-Disposition','attachment; filename=%s' % context.getId()) Nice idea, but what i need is different. In PHP there is a function called readfile, i'm sure there is something also in Zope, but i'm not able to find it! No, I can tell you you are on the

Re: [Zope] Improved Zope Org Proposal

2006-06-26 Thread Lennart Regebro
On 6/26/06, Chris Withers [EMAIL PROTECTED] wrote: Ah well, this meta-ranting is much quicker and easier... Hehe. :) I would like to point out a minor conflict between two of your meta-rants: I'd add the caveat that it needs to be stable maintainable software that isn't going to cause the

Re: [Zope] Content Disposition - Download files

2006-06-26 Thread Berthold Stöger
Hi, On Monday 26 June 2006 12:46, Bruno Grampa wrote: Hello, i want to send an image or a pdf to a browser not for viewing but for downloading. I've written this code: dtml-call RESPONSE.setHeader('Content-type', 'application/force-download') dtml-call

Re: [Zope] zcatalog strange behavior

2006-06-26 Thread bard stéphane
thank's dieter ! In fact i lose the tip that the Zcatalog should have the id Catalog so the object could be automatically cataloged at creation. thank's a lot Dieter Maurer a écrit : bard stéphane wrote at 2006-6-24 19:38 +0200: Today i try to create another zclass on the same zope server

Re: [Zope] OracleStorage - DCOracle2

2006-06-26 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2006-6-26 14:21 +0200: I need save the zope objects in an Oracle 8.1.7 Database,who I'm trying do it with DCOracle2 Product. My initial problem is I need save objects in Oracle Database who reside in other machine distinc Zope resides. Due to it, I have a compilation

Re: [Zope] Problem running zopectl

2006-06-26 Thread Dieter Maurer
Mike B wrote at 2006-6-26 09:05 -0400: I'm getting the following error message when I try to run zopectl. I've googled it and looked through the archives but found nothing. Any help would be appreciated. I'm running python 2.4.3 and zope 2.9.3. ... File

Re: [Zope] Zope not sending images problem

2006-06-26 Thread Dieter Maurer
=?ISO-8859-13?Q?Aidas_Dailid=EB?= wrote at 2006-6-26 14:33 +0300: I've installed 2.7.8 on OS X Server and added some Zope product. The problem is that the web page works fine from localhost, but from remote hosts it fails to load some random images. Browsers often have tight timeouts when they

Re: [Zope] Improved Zope Org Proposal

2006-06-26 Thread Dieter Maurer
Andrew Sawyers wrote at 2006-6-25 17:54 -0400: ... Well, I think the content of this site is what I'd noted is what I noted in earlier emails. It might not be 'interesting', but I would hope it to be quality and focused. I have faith the 'interesting' aspects you wish will come from the

Re: [Zope] Content Disposition - Download files

2006-06-26 Thread Dieter Maurer
Bruno Grampa wrote at 2006-6-26 12:46 +0200: i want to send an image or a pdf to a browser not for viewing but for downloading. I've written this code: dtml-call RESPONSE.setHeader('Content-type', 'application/force-download') dtml-call RESPONSE.setHeader('Content-Disposition', 'attachment;

Re: [Zope] get non-acquired attributes of an instance

2006-06-26 Thread Dieter Maurer
Andreas Jung wrote at 2006-6-26 10:35 +0200: ... is it possible to get the list of all an object's attributes, excepted the ones acquired from parents ? aq_base(aq_inner(obj)).__dict__ ? This can be optimized to obj.__dict__ (because attributes starting with _ are never acquired). Be warned

Re: [Zope] Improved Zope Org Proposal

2006-06-26 Thread Lennart Regebro
On 6/26/06, Dieter Maurer [EMAIL PROTECTED] wrote: I would prefer a single big site as an access point to the most relevant information. But, if this is not possible... Single big site is probably not possible. We have tried and failed. But having a small focused site that works as the nave

Re: [Zope] Improved Zope Org Proposal

2006-06-26 Thread David H
Lennart Regebro wrote: On 6/26/06, Dieter Maurer [EMAIL PROTECTED] wrote: I would prefer a single big site as an access point to the most relevant information. But, if this is not possible... Single big site is probably not possible. We have tried and failed. But having a small focused

[Zope] Improved Zope Org Proposal

2006-06-26 Thread John Schinnerer
Aloha, ... I start to understand: You want to have a narrow, a focused site because you fear that a bigger one cannot be managed. In such a case, I would say: start with the small solution and maybe get bigger later. This is a basic principle of design that works (as opposed to

RE: [Zope] DeadlockDebugger revisited

2006-06-26 Thread Matthew X. Economou
From: Dieter Maurer [mailto:[EMAIL PROTECTED] I fear that you can call Python functions in general only on the current thread (the other's probably lack the GIL, an essential requirement to execute Python code). Well, I upgraded to Python 2.4, re-compiled Zope and friends, and updated a few

[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Products/ZCatalog/ZCatalog.py Restore 'LOG' for BBB.

2006-06-26 Thread Tres Seaver
Log message for revision 68847: Restore 'LOG' for BBB. Changed: U Zope/branches/2.9/lib/python/Products/ZCatalog/ZCatalog.py -=- Modified: Zope/branches/2.9/lib/python/Products/ZCatalog/ZCatalog.py === ---

[Zope-Checkins] SVN: Zope/branches/tseaver-retire_zpkg-2.10/lib/python/zope/app/ Typo.

2006-06-26 Thread Tres Seaver
Log message for revision 68855: Typo. Changed: _U Zope/branches/tseaver-retire_zpkg-2.10/lib/python/zope/app/ U Zope/branches/tseaver-retire_zpkg-2.10/lib/python/zope/app/EXTERNALS.txt -=- Property changes on: Zope/branches/tseaver-retire_zpkg-2.10/lib/python/zope/app

[Zope-Checkins] SVN: Zope/branches/tseaver-retire_zpkg-2.10/ Merge old-sk00l configure / make stuff from 2.9 side.

2006-06-26 Thread Tres Seaver
Log message for revision 68857: Merge old-sk00l configure / make stuff from 2.9 side. Changed: D Zope/branches/tseaver-retire_zpkg-2.10/buildsupport/ U Zope/branches/tseaver-retire_zpkg-2.10/configure U Zope/branches/tseaver-retire_zpkg-2.10/inst/Makefile.in U

[Zope-Checkins] SVN: Zope/branches/tseaver-retire_zpkg-2.10/doc/CHANGES.txt Update changelog.

2006-06-26 Thread Tres Seaver
Log message for revision 68863: Update changelog. Changed: U Zope/branches/tseaver-retire_zpkg-2.10/doc/CHANGES.txt -=- Modified: Zope/branches/tseaver-retire_zpkg-2.10/doc/CHANGES.txt === ---

[Zope-dev] DomainAuthenticationMode with Sockets

2006-06-26 Thread Juan Javier Carrera Obrero
Hi, I am trying to access by means of "sockets" to a folder that contains a acl_user folder with enabled DomainAuthenticationMode (domain_auth_mode=1) from a enabled IP in the domain (I have created a user specifying a domain with this IP and I have left the password for this user blank). It

Re: [Zope-dev] Re: Time-based releases a good idea?

2006-06-26 Thread Chris Withers
Dieter Maurer wrote: Philipp von Weitershausen wrote at 2006-6-18 12:38 +0200: ... deprecation policy ... This policy allows us to move forward (which Zope 2 never really did for the the majority of those five years you mention). Although, it might help in a few cases, it is not at all

[Zope-dev] Re: [Zope3-dev] Re: Stable / Development branches?

2006-06-26 Thread Chris Withers
Philipp von Weitershausen wrote: It's dead from a maintenance point of view. If you still want to maintain it, be our guest. But you yourself said that maintaining too many branches is madness. My point is that we're creating too many branches ;-) Chris -- Simplistix - Content Management,

Re: [Zope-dev] Re: [Zope3-dev] Re: Stable / Development branches?

2006-06-26 Thread Andreas Jung
--On 26. Juni 2006 11:25:05 +0100 Chris Withers [EMAIL PROTECTED] wrote: Philipp von Weitershausen wrote: It's dead from a maintenance point of view. If you still want to maintain it, be our guest. But you yourself said that maintaining too many branches is madness. My point is that

[Zope-dev] Re: [Zope3-dev] Re: Unify the Zope 2 and Zope 3 repositories!

2006-06-26 Thread Lennart Regebro
A small question/idea. When making svn:externals in Nuxeo, we always use https. That way trees can still be checked out anonymously, but still modified. in Zope, threes are checked out with svn+ssh, but externals use svn. That means that when you want to modify for example Five, you need to

Re: [Zope-dev] Re: Flood of deprecation warnings...

2006-06-26 Thread Lennart Regebro
On 6/26/06, Chris Withers [EMAIL PROTECTED] wrote: Oh please, stop the FUD. Not FUD, whatever you mean by that here... Right. FUD is when you intentionally spread unjustified Fear, Uncertainty and Doubt about things to hurt them. You don't. You may HAVE the above things, but if it is

Re: [Zope-dev] Database mounting problem in 2.9.3?

2006-06-26 Thread Chris Withers
Dieter Maurer wrote: Chris Withers wrote at 2006-6-23 17:12 +0100: Get this error on startup with one project I've just moved to Zope 2.9.3: File /usr/local/zope/2.9.3/lib/python/Zope2/Startup/datatypes.py, line 175, in createDB return ZODBDatabase.open(self, databases) File

[Zope-dev] Re: Unify the Zope 2 and Zope 3 repositories!

2006-06-26 Thread Max M
Chris Withers wrote: Philipp von Weitershausen wrote: Jim suggested a different strategy with Zope 5 (http://mail.zope.org/pipermail/zope3-dev/2006-February/018415.html). The little bits and pieces that make up Zope 3 (the zope.* packages) would be developed more or less independently of

Re: [Zope-dev] Re: [Checkins] SVN: Zope/branches/2.9/lib/python/ Replace bulk of uses of 'zLOG' with equivalent Python 'logging' module usage.

2006-06-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: --On 25. Juni 2006 16:32:04 +0200 Stefan H. Holek [EMAIL PROTECTED] wrote: This, BTW, breaks CMF 1.5 on Zope 2.9. Not sure I/you should care though ;-) Traceback (most recent call last): File

[Zope-dev] Re: [Zope3-dev] Re: Unify the Zope 2 and Zope 3 repositories!

2006-06-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Regebro wrote: A small question/idea. When making svn:externals in Nuxeo, we always use https. That way trees can still be checked out anonymously, but still modified. in Zope, threes are checked out with svn+ssh, but externals use

[Zope-dev] Re: Flood of deprecation warnings...

2006-06-26 Thread Philipp von Weitershausen
Chris Withers wrote: Philipp von Weitershausen wrote: Chris Withers wrote: Florent Guillaume wrote: Chris Withers wrote: Both core zope and Plone spew forth in their default state. Zope 2.10 does? It shouldn't. Please point out the deprecation warnings it sends. I, like many people I

Re: [Zope-dev] Re: [Zope3-dev] Re: Unify the Zope 2 and Zope 3 repositories!

2006-06-26 Thread Lennart Regebro
On 6/26/06, Tres Seaver [EMAIL PROTECTED] wrote: - -1. The externals are just that, external to the Zope project. Uhm. I have a hard time seeing Five and lib/python/zope as external to Zope. When we get to an egg-based Zope install, I think such a gesture would map onto check out the source

[Zope-dev] Re: [Zope3-dev] Re: Unify the Zope 2 and Zope 3 repositories!

2006-06-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Regebro wrote: On 6/26/06, Tres Seaver [EMAIL PROTECTED] wrote: - -1. The externals are just that, external to the Zope project. Uhm. I have a hard time seeing Five and lib/python/zope as external to Zope. They are managed as separate

Re: [Zope-dev] DomainAuthenticationMode with Sockets

2006-06-26 Thread Dieter Maurer
Juan Javier Carrera Obrero wrote at 2006-6-26 09:52 +0200: ... Does the DomainAuthenticationMode of a acl_user folder runs successfully via Socket ? What should via Socket mean? All standard HTTP requests work via socket. DomainAuthentication seems to work because there have been occasional

Re: [Zope-dev] Database mounting problem in 2.9.3?

2006-06-26 Thread Dieter Maurer
Chris Withers wrote at 2006-6-26 14:16 +0100: ... You see here the new (ZODB 3.6) multi-database support. Something tries to ad the database packed to a multi-database that already contains a packed. This might happen when you mount the same storage at different places into your

[Zope-dev] Re: Proposal: Scrap zpkg for Zope2 releases

2006-06-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tres Seaver wrote: Philipp von Weitershausen wrote: Tres Seaver wrote: The point is that the release tarball should generate the same environment that the developers routinely work in; otherwise, we leave the poor suckers who install from it

[Zope-dev] Re: Proposal: Scrap zpkg for Zope2 releases

2006-06-26 Thread Philipp von Weitershausen
Tres Seaver wrote: I've now done the same work on a branch for that tree: [/home/tseaver/projects/Zope-CVS/tseaver-retire_zpkg-2.10] $ head .svn/entries ?xml version=1.0 encoding=utf-8? wc-entries xmlns=svn: entry committed-rev=68857 name=