[Zope] Migration pains going to Zope 2.8

2005-08-23 Thread Richard Jones
I can't instantiate out Product, which is a bit of a hurdle :)

Our Product's registration looks like this (this function is invoked from the 
Product's __init__.py):

def initialize(context):
''' Register the CGPublisher class '''
context.registerClass(
CGPublisher,
permission=Perm.ADD_CGPUBLISHERS,
constructors = (addCGPublisherForm, addCGPublisher, addValues,
getMode),
icon='www/CGPublisher.gif',
visibility='Global',
)

Unfortunately, the addCGPublisherForm template can't access the "addValues" 
function. The specific error I get is:

 Error Type: Unauthorized
 Error Value: The container has no security assertions. Access to 'addValues'
  of (App.ProductContext.__FactoryDispatcher__ object at 0xb61d30cc) denied.

I tried adding some module security declarations:

security = ModuleSecurityInfo('Products')
security.declarePublic('CGPublisher')
security = ModuleSecurityInfo('Products.CGPublisher')
security.declarePublic('addValues')
security.declarePublic('getMode')

to the initialize() function, but that didn't change anything. Any 
suggestions?



pgpHifT3MDPM9.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] [ANN] iungo released to the wild...

2005-08-23 Thread Maik Jablonski

Hi to all,

today I decided to release iungo to the world-wild-world... iungo was 
already announced at the German Zope User Group (DZUG) some weeks ago, 
but today I started and finished translating most of the docs to english 
for a broader audience. The tutorial is still missing, but I'll do this 
in the next days too.



What is iungo?
--
Based on the web-application-server Zope iungo provides a solid system 
to build up object-oriented web-databases, easy-to-use-wikis, content-, 
document- and knowledge-management-systems. iungo targets users and 
developers, who trust in the "Keep it simple"-philosophy and want to 
maintain control over their work. iungo tries to connect people with 
information.



Features?
-
- Strict separation of content and application: your content can be 
moved between different zope-instances and iungo-versions without the 
fear of breaking anything.


- Folderish-Content: In the web all "entities" are links, not folders, 
documents or files... no more headaches for users what content-type to 
use... in the default iungo-install there's only one for all...;)


- Placeless-Content: All objects have a unique id (autogenerated per 
default) and can be moved around within the repository without breaking 
any links between objects.


- KISS (Keep it simple stupid): It's easy to develop a custom layout 
with a basic knowledge of DTML or ZPT.


- Expandable: Create new content-types for webdatabases with some clicks 
in the ZMI.



Where can I find more info about iungo?
---
http://www.iungo.org/


If you have questions, feel free to ask me:
[EMAIL PROTECTED]

Keep zoped,

Maik

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] problem with adding an external method

2005-08-23 Thread Jonathan


- Original Message - 
From: "Scott Mann" <[EMAIL PROTECTED]>
Sorry in advance for this newbie question. I've searched the archives and 
while I have learned a few things and tried a few things, I still have the 
same problem.


I am attempting to add the external python module "nb_fetch" Doing so 
returns the error message:


   "Module /data/zope/testbed/initialzope/Extensions/nb_fetch.py, line 3, 
in ?


ImportError: No module named nb_parse"

where nb_parse is imported by nb_fetch. I have tried adding __init__.py 
into the Extensions directory. I have also made a number of attempts at 
adding directories to the PYTHONPATH, but no success. I have even put the 
imported modules (nb_parse, etc) into the lib/python subdirectory of the 
zope directory. Also, I restart zope every time I make a change. Any 
ideas?


Zope is unable to add the external method because there is a python error 
('No module named nb_parse') which stops zope from loading the external 
method.  Two possible fixes:


1) set your path to include the directory where nb_parse.py lives.
eg.
   import sys
   sys.path.append('/apps/zope/lib/python/mypythonroutines')

Also, make sure the group/ownership of the directory and python routine 
files allow zope to access them.


2) try 'hardcoding' the nb_parse routine within nb_fetch.py.   If this 
works, then your problem is definitely related to pythonpath not being set 
up (or zope can't access the directories/files in the path).


hth

Jonathan



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] SaneBrains 1.0.0 Released!

2005-08-23 Thread Dieter Maurer
Chris Withers wrote at 2005-8-23 10:49 +0100:
>SaneBrains patches ZCatalog's brain objects such that they don't 
>unnecessarily catch exceptions.
>
>The brain objects are patched such that:
>
>- the getObject method never tries to catch any exceptions, it just uses 
>a simple restrictedTraverse to turn the path stored in the ZCatalog into 
>an object

Sad that the long discussion could not convince you
that "restrictedTraverse" is not the correct approach...

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Workflow question

2005-08-23 Thread Dieter Maurer
David Pratt wrote at 2005-8-22 15:12 -0300:
> ...
>>> # Using default put method from NullResource
>>> def _default_PUT_factory( self, name, typ, body ):
>>> ...
>>> def PUT(self, REQUEST, RESPONSE):
>>> ...
>>
>> Why do you override these methods as apparently, you do not use
>> them...
>
>I guess my thought it that I want everything to happen normally with 
>the PUT except no object creation

One reason more, not to override methods.

Note, that the PUT usually used it that of the
"webdav.Resource.NullResource" and *NOT* the one of the container.
As you no longer create an auxiliary object (such as "NullResource")
but directly call a function "PUT" in your "__bobo_traverse__",
the change behaviour should got into this "PUT" function
and not the "PUT" method of the container.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] problem with adding an external method

2005-08-23 Thread Scott Mann

Hi All,

Sorry in advance for this newbie question. I've searched the archives and while 
I have learned a few things and tried a few things, I still have the same 
problem.

I am attempting to add the external python module "nb_fetch" Doing so returns 
the error message:

"Module /data/zope/testbed/initialzope/Extensions/nb_fetch.py, line 3, in ?

 ImportError: No module named nb_parse"

where nb_parse is imported by nb_fetch. I have tried adding __init__.py into 
the Extensions directory. I have also made a number of attempts at adding 
directories to the PYTHONPATH, but no success. I have even put the imported 
modules (nb_parse, etc) into the lib/python subdirectory of the zope directory. 
Also, I restart zope every time I make a change. Any ideas?

TIA
Scott
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: FW: [ZODB-Dev] python types question

2005-08-23 Thread Jürgen Herrmann
oh my goodness, today is not my day.
this should go to the zodb-dev list,  plz ignore!

[ Jürgen Herrmann wrote:]
> thanks tim! my mistake...
>
> regards, juergen herrmann
>
> [ Tim Peters wrote:]
>> [fwd'ing private msg, since it appears to have been intended to
>>  go to the list]
>>
>> -Original Message-
>> From: Jürgen Herrmann [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, August 23, 2005 7:31 AM
>> To: Tim Peters
>> Subject: RE: [ZODB-Dev] python types question
>>
>> hi!
>>
>> first of all, thanks to everybody who replied to my message.
>> i experimented a bit with OOBTree and OOTreeSet. OOBTree is surely
>> fine for the mapping part of what i need.
>> But i think OOTreeSet doesn't fit as a replacement for PersistentList
>> because i need the oids in the list to maintain their order. i want
>> to be able to change the order of oids in the lists, too.
>>
>> any further hints what to use instead of OOTreeSet then?
>>
>> regards, juergen herrmann
>>
>>
>> ___
>>
 XLhost.de - eXperts in Linux hosting <<
>>
>> Jürgen Herrmann
>> Bruderwöhrdstraße 15b, DE-93051 Regensburg
>>
>> Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
>> Fax:  +49 (0)721 151 463027
>> WEB:  http://www.XLhost.de
>>
>> ___
>> For more information about ZODB, see the ZODB Wiki:
>> http://www.zope.org/Wikis/ZODB/
>>
>> ZODB-Dev mailing list  -  ZODB-Dev@zope.org
>> http://mail.zope.org/mailman/listinfo/zodb-dev
>>
>
>
> ___
>
>>> XLhost.de - eXperts in Linux hosting <<
>
> Jürgen Herrmann
> Bruderwöhrdstraße 15b, DE-93051 Regensburg
>
> Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
> Fax:  +49 (0)721 151 463027
> WEB:  http://www.XLhost.de
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>


___

>> XLhost.de - eXperts in Linux hosting <<

Jürgen Herrmann
Bruderwöhrdstraße 15b, DE-93051 Regensburg

Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027
WEB:  http://www.XLhost.de
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Failure to install PIL on a Linux server

2005-08-23 Thread Tino Wildenhain

Tino Wildenhain schrieb:

Dominik Wezel schrieb:


Tino,


apt-get install python2.3-imaging

ready.




Thanks anyway, but you probably didn't read the last section of my 
mail.  Unfortunately, I *have* to find a way to do it manually.
FYI: It has to do with the way I set up Zope and various other stuff 
around it.  Unfortunately, back then I needed a very upfront version 
of Zope as yet unavailable through the debian package system, so I 
chose to set it up manually; this led to the need for a particular 
python version not available through the debian package system, so I 
set it up manually.  Now the customer needs PIL on this manual setup.  
Albeit I tried to apt-get it, it didn't integrate at all with the 
other stuff. Needlesds to say I don't want to setup another python 
version on the same server, as mass storage capacity *is* an issue here).



Hm. You can perfectly run a source build of Zope on package-python
from debian. Testing has 2.3.5-6, which is perfectly usable.


Ah and stable has 2.3.5 too. Btw.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Failure to install PIL on a Linux server

2005-08-23 Thread Tino Wildenhain

Dominik Wezel schrieb:

Tino,


apt-get install python2.3-imaging

ready.



Thanks anyway, but you probably didn't read the last section of my mail. 
 Unfortunately, I *have* to find a way to do it manually.
FYI: It has to do with the way I set up Zope and various other stuff 
around it.  Unfortunately, back then I needed a very upfront version of 
Zope as yet unavailable through the debian package system, so I chose to 
set it up manually; this led to the need for a particular python version 
not available through the debian package system, so I set it up 
manually.  Now the customer needs PIL on this manual setup.  Albeit I 
tried to apt-get it, it didn't integrate at all with the other stuff. 
Needlesds to say I don't want to setup another python version on the 
same server, as mass storage capacity *is* an issue here).


Hm. You can perfectly run a source build of Zope on package-python
from debian. Testing has 2.3.5-6, which is perfectly usable.

Thats why I'm using debian too - to save me from all the hassle with
source depencies while using source where I really want it :-)

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: manage_afterAdd quirks

2005-08-23 Thread Derrick Hudson
On Fri, Aug 19, 2005 at 01:25:22AM +0200, Philip Jägenstedt wrote:
| Hello!
| 
| I'm trying to write a small filesystems based product which I'm calling
| MovieWorld. The main class (MovieWorld) inherits from ObjectManager and
| is to be configured to contain a folder with images and a index_html
| page template (so that it can be edited via ZMI if needed).

Note that your object does not need to contain an index_html object in
order to be edited in the ZMI.  In your MovieWorld class, put the
following:

manage_options = OFS.Folder.Folder.manage_options

(be sure to 'import OFS' earlier in the module)


The manage_options object in the class defines what tabs will be shown
in the ZMI and what method to call when the admin clicks on the tab.

HTH,
-D

-- 
Your beauty should not come from outward adornment, such as braided hair
and the wearing of gold jewelry and fine clothes.  Instead, it should be
that of your inner self, the unfading beauty of a gentle and quiet
spirit, which is of GREAT WORTH in God's sight.  For this is the way the
holy women of the past used to make themselves beautiful.
I Peter 3:3-5
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: FW: [ZODB-Dev] python types question

2005-08-23 Thread Jürgen Herrmann
thanks tim! my mistake...

regards, juergen herrmann

[ Tim Peters wrote:]
> [fwd'ing private msg, since it appears to have been intended to
>  go to the list]
>
> -Original Message-
> From: Jürgen Herrmann [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 23, 2005 7:31 AM
> To: Tim Peters
> Subject: RE: [ZODB-Dev] python types question
>
> hi!
>
> first of all, thanks to everybody who replied to my message.
> i experimented a bit with OOBTree and OOTreeSet. OOBTree is surely
> fine for the mapping part of what i need.
> But i think OOTreeSet doesn't fit as a replacement for PersistentList
> because i need the oids in the list to maintain their order. i want
> to be able to change the order of oids in the lists, too.
>
> any further hints what to use instead of OOTreeSet then?
>
> regards, juergen herrmann
>
>
> ___
>
>>> XLhost.de - eXperts in Linux hosting <<
>
> Jürgen Herrmann
> Bruderwöhrdstraße 15b, DE-93051 Regensburg
>
> Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
> Fax:  +49 (0)721 151 463027
> WEB:  http://www.XLhost.de
>
> ___
> For more information about ZODB, see the ZODB Wiki:
> http://www.zope.org/Wikis/ZODB/
>
> ZODB-Dev mailing list  -  ZODB-Dev@zope.org
> http://mail.zope.org/mailman/listinfo/zodb-dev
>


___

>> XLhost.de - eXperts in Linux hosting <<

Jürgen Herrmann
Bruderwöhrdstraße 15b, DE-93051 Regensburg

Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027
WEB:  http://www.XLhost.de
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Failure to install PIL on a Linux server

2005-08-23 Thread Dominik Wezel

Tino,


apt-get install python2.3-imaging

ready.


Thanks anyway, but you probably didn't read the last section of my mail. 
 Unfortunately, I *have* to find a way to do it manually.
FYI: It has to do with the way I set up Zope and various other stuff 
around it.  Unfortunately, back then I needed a very upfront version of 
Zope as yet unavailable through the debian package system, so I chose to 
set it up manually; this led to the need for a particular python version 
not available through the debian package system, so I set it up 
manually.  Now the customer needs PIL on this manual setup.  Albeit I 
tried to apt-get it, it didn't integrate at all with the other stuff. 
Needlesds to say I don't want to setup another python version on the 
same server, as mass storage capacity *is* an issue here).


Doing it right just now would be a hazard to a running server; I'm going 
to wait for a necessary release change and then maybe set it up the 
debian way.


For now, I need to go the way manually (or rather by foot =:)

--

So long, Dominik

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Failure to install PIL on a Linux server

2005-08-23 Thread Tino Wildenhain

Dominik Wezel schrieb:

Hi all

I'm aware that PIL is not easy to install, primarily due to the
prerequisites.  I've studied and applied as well as possible
http://mail.zope.org/pipermail/zope/2002-December/128364.html and
http://www.zope.org/Members/regebro/PIL_zope/, both of which seem
slightly medieval: the setup and test processes are very different
today.  I didn't find any other information pertaining to my problem, so
I considered this posting.  I hope I'm on the right list here.



Setup
=
- debian 3.1 (sarge) on a UML (user mode linux) dedicated ZOPE instance


apt-get install python2.3-imaging

ready.



- /usr/src/Imaging-1.1.5 (from Imaging-1.1.5.tar.gz, 2005-03-28)
- /usr/src/freetype-2.1.10 (from freetype-2.1.10.tar.bz2, 2005-06-12)
- /usr/src/jpeg-6b (from jpegsrc.v6b.tar.gz, 2005-03-28)



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Failure to install PIL on a Linux server

2005-08-23 Thread Dominik Wezel

Hi all

I'm aware that PIL is not easy to install, primarily due to the
prerequisites.  I've studied and applied as well as possible
http://mail.zope.org/pipermail/zope/2002-December/128364.html and
http://www.zope.org/Members/regebro/PIL_zope/, both of which seem
slightly medieval: the setup and test processes are very different
today.  I didn't find any other information pertaining to my problem, so
I considered this posting.  I hope I'm on the right list here.



Setup
=
- debian 3.1 (sarge) on a UML (user mode linux) dedicated ZOPE instance
- /usr/src/Imaging-1.1.5 (from Imaging-1.1.5.tar.gz, 2005-03-28)
- /usr/src/freetype-2.1.10 (from freetype-2.1.10.tar.bz2, 2005-06-12)
- /usr/src/jpeg-6b (from jpegsrc.v6b.tar.gz, 2005-03-28)



Symptom
===
[EMAIL PROTECTED]:/usr/src/Imaging-1.1.5# python setup.py build_ext -i
|running build_ext
|
|PIL 1.1.5 BUILD SUMMARY
|
|version   1.1.5
|platform  linux2 2.3.5 (#1, Apr 22 2005, 15:12:06)
|  [GCC 3.3.5 (Debian 1:3.3.5-8)]
|
|*** TKINTER support not available
|--- JPEG support ok
|--- ZLIB (PNG/ZIP) support ok
|--- FREETYPE2 support ok
|
|To add a missing option, make sure you have the required
|library, and set the corresponding ROOT variable in the
|setup.py script.
|
|To check the build, run the selftest.py script.

[EMAIL PROTECTED]:/usr/src/Imaging-1.1.5# python selftest.py
|*
|Failure in example: _info(Image.open("Images/lena.jpg"))
|from line #24 of selftest.testimage
|Exception raised:
|Traceback (most recent call last):
|  File "./doctest.py", line 499, in _run_examples_inner
|exec compile(source, "", "single") in globs
|  File "", line 1, in ?
|  File "./selftest.py", line 21, in _info
|im.load()
|  File "PIL/ImageFile.py", line 180, in load
|d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
|  File "PIL/Image.py", line 328, in _getdecoder
|raise IOError("decoder %s not available" % decoder_name)
|IOError: decoder jpeg not available
|1 items had failures:
|   1 of  55 in selftest.testimage
|***Test Failed*** 1 failures.
|*** 1 tests of 55 failed.

It looks like JPEG support is enabled, but still the selftest doesn't
find the decoder.


Additional Info
===

In /usr/src/Imaging-1.1.5/setup.py
# 
# Library pointers.
#

FREETYPE_ROOT = "/usr/local/lib"
JPEG_ROOT = "/usr/lib"
TIFF_ROOT = None
ZLIB_ROOT = None
TCL_ROOT = None

[EMAIL PROTECTED]:/usr/src/Imaging-1.1.5# ls /usr/local/lib
|total 4168
|-rw-r--r--  1 root staff 2544356 Jun 27 18:08 libfreetype.a
|-rwxr-xr-x  1 root staff 824 Jun 27 18:08 libfreetype.la
|lrwxrwxrwx  1 root staff  20 Jun 27 18:08 libfreetype.so ->
libfreetype.so.6.3.8
|lrwxrwxrwx  1 root staff  20 Jun 27 18:08 libfreetype.so.6 ->
libfreetype.so.6.3.8
|-rwxr-xr-x  1 root staff 1546147 Jun 27 18:08 libfreetype.so.6.3.8
|-rw-r--r--  1 root staff  162324 Aug 23 09:37 libjpeg.a
|drwxr-sr-x  2 root staff  80 Jun 27 18:08 pkgconfig
|drwxrwsr-x  3 root staff  80 Jun 17 16:05 python2.3

[EMAIL PROTECTED]:/usr/src/Imaging-1.1.5# ls /usr/local/lib
|
|-rw-r--r--   1 root root 161160 Mar  2 13:26 libjpeg.a
|-rw-r--r--   1 root root802 Mar  2 13:26 libjpeg.la
|lrwxrwxrwx   1 root root 17 Aug 18 15:26 libjpeg.so ->
libjpeg.so.62.0.0
|lrwxrwxrwx   1 root root 17 Jun 17 17:54 libjpeg.so.62 ->
libjpeg.so.62.0.0
|-rwxr-xr-x   1 root root 140022 Jun 17 17:54 libjpeg.so.62.0.0
|

[EMAIL PROTECTED]:/usr/src/Imaging-1.1.5# ld -L/usr/lib -ljpeg -nostdlib
|ld: warning: libc.so.6, needed by /usr/lib/libjpeg.so, not found (try
|using -rpath or -rpath-link)
|ld: warning: cannot find entry symbol _start; not setting start address
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'
|/usr/lib/libjpeg.so: undefined reference to [EMAIL PROTECTED]'

[EMAIL PROTECTED]:/usr/src/Imaging-1.1.5#

Re: [Zope] ZASync method calls

2005-08-23 Thread Jonathan


- Original Message - 
From: "Jan-Ole Esleben" <[EMAIL PROTECTED]>


I'm having a really complicated problem that I don't know how to put into
words properly, because I'm really vague on what's causing it and the
setup is highly involved; I would be _really_ glad if someone could help 
me

out with this:

I have a ZOPE instance (connected to a ZEO server) running a custom
method call wrapper that decides (based on the method's arguments) to
run a method asynchronously using zasync (as well as some other stuff that
I think isn't important in the context of my problem). All this has
been tested. For various
reasons, the method call's path is approximately as follows:

0. Method call using a generic Python method
1. Python code - resolves the method's location and name using ZOPE 
methods

2. Method dispatcher (called via ZOPE): dispatches synchronously or
asynchronously, using zasync, zope_exec and putSessionCall; the method
called is again a ZOPE method that calls the final method as another
ZOPE method

The apparent massive indirection cannot be avoided (for rather complicated
reasons). Everything is supposed to be highly generic.

My problem is this: if I use a test method that dispatches such an 
asynchronous

method that is supposed to change an instance variable (the class is
persistent) and run for ten seconds, then wait for fourteen seconds and 
see
if the method has run (check the instance variable) synchronously (while 
the

asynchronous method is supposed to work in the background), I find the
variable unchanged; further checks (using print statements) confirm that 
the
asynchronous method indeed doesn't run until my assertion fails, even if I 
give

it a lot of time.

If I disconnect both - run the long running method asynchronously, then 
run
(via ZOPE directly, not from within the same method call) a synchronous 
method
that waits for fourteen seconds and checks the variable, the asynchronous 
call

works just fine (even though both run alongsinde for a time).

It isn't the number of threads available to the zserver, I've increased 
that
and nothing has changed. Manual tests of asynchronous methods also don't 
show
anything wrong with my zasync setup. I can only assume that the 
asynchronous
method is _started_ only _after_ the caller has finished. Is there a 
reason for

that, and can I circumvent it? Or am I completely wrong and something else
isn't working?

I'm on Windows XP SP2, ZOPE 2.7.6, Python 2.3.5 with Twisted installed.



Is it possible that your asynchronous routine is not committing the 
transaction? ie. If zope considers the async routine to be part of the 
current 'session' then the variable the async routine is updating will not 
be changed until the current session is completed and zope commits the 
transaction (so any checks of the variable during the current session will 
not see any changes to the variable).


To see if this is the case you could add a "get_transaction().commit()" 
statement in your code after you change the variable's contents.


hth

Jonathan 



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope 2.8.1 on Mac OS X tiger Server

2005-08-23 Thread Garito

Andrew Langmead escribió:


On Aug 18, 2005, at 1:19 PM, Garito wrote:


Sorry but my Mac OS X skill are null



I think you are in the unfortunate spot of of OS X where you are  
confronted with the ease of use of Unix and the ubiquity of the  
Macintosh.




I try:

sudo /System/Library/StartupItems/Zope/Zope

but raises line 31: $1: unbound variable

now I supouse $1 will be StartService/StopService/RestarService





You might want to take a look at some of Apple's documentation for  
creating its startup items, since it is significantly different than  
either the traditional Unix styles (both BSD and SysV)





Also, I would recommend against putting your startup items in /System/ 
Library/StartupItems, and suggest to use /Library/StartupItems  
instead. Everything in /System can be overwritten by OS upgrades, / 
Library is for a machine's local customizations.


What I believe you want in order to test your script is:

sudo /Library/StartupItems/Zope/Zope start


the RunService function will take the argument "start" , "stop", or  
"restart", and based on that, run either the function "StartService",  
"StopService", or "RestartService". All three functions need to  
exist, whether they are used or not.




Once you get that to succeed, you might want to try to see if this  
succeeeds:


sudo /sbin/SystemStarter  restart "Zope WebServer"

(or maybe "Zope Server", you seem to have changed it between plist  
revisions.)




Hi

I try sudo /System/Library/StartupItems/Zope/Zope start but nothing 
happend (nor on console)


but if I launch /var/zope/sistes/bin/zopectl start it works perfectly

I try to comment the if and fi lines but don't work

any idea?

Thanks!

--
Mis Cosas
http://blogs.sistes.net/Garito/


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] SaneBrains 1.0.0 Released!

2005-08-23 Thread Chris Withers
SaneBrains patches ZCatalog's brain objects such that they don't 
unnecessarily catch exceptions.


The brain objects are patched such that:

- the getObject method never tries to catch any exceptions, it just uses 
a simple restrictedTraverse to turn the path stored in the ZCatalog into 
an object


- the _unrestrictedGetObject method never tries to catch any exceptions, 
it just uses a simple unrestrictedTraverse to turn the path stored in 
the ZCatalog into an object


As a bonus, this product also allows you to do the following from 
untrusted code (ie: Python Scripts):


  from zExceptions import Unauthorized

For more information, please see: 
http://www.simplistix.co.uk/software/zope/sanebrains


cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] SQLConnectionIds

2005-08-23 Thread Nicholas Wieland
I'm working as admin, sorry for not mentioning it.
The same PageTemplate in the same folder, but not inside the product, works like a charm, same as SQLConnectionIDs inside the product, but as DTMLFile.  
 
  ngw
		Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )