[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 lab

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

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 fire

[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: now i have to send the file as a binary flow, but i don't know how to do. Can you help me? Thanks, Bruno ___ Zope maillist - Zo

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: now i have to send the file as a binary flow, but i don't know how to do. Can you help me? Do you plan to always send the file for download? Then you just

[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 and

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 cat

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: yourcatalog.catalog_object(obj

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: >> > 'application/force-download')"> >> > filename=filename.gif')"> >> >> now i have to send the file as a binary flow, but i don't know how to >> do. Can you help me? > Do yo

[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 ot

[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 it

Re: [Zope] OracleStorage - DCOracle2

2006-06-26 Thread Jonathan
- Original Message - From: <[EMAIL PROTECTED]> To: 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 save objects

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 "/usr/share/zope/zope/lib/python/Zope2/Startup/zope

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.

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 -- Simplist

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 th

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 imag

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: > 'application/force-download')"> > filename=filename.gif')"> > > now i have to send the file as a binary flow, but i d

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 compilatio

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 "/usr/share/zope/z-2.9.3//lib/python/A

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 com

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: >'application/force-download')"> >filename=filename.gif')"> You add an additional '' It might be necessary to avoid white space around your t

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).

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 a

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 si

[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 o

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