[Zope-Annce] Zenoss Project (Network/Systems Management)

2006-03-20 Thread Bill Karpovich
We are pleased to announce the Zenoss project.

Zenoss is Zope-based, network/systems monitoring application that has been
in development since 2002.

The goal of Zenoss is to Simplify Systems Management with a Python,
open source alternative to the big commercial management suites (e.g. IBM
Tivoli, HP OpenView, etc.). 

Zenoss also strives to go beyond Nagios and OpenNMS with improved
architecture, scalability, ease and breadth. 

Links:
  - http://www.zenoss.org (home)
  - http://www.zenoss.org/download (download)
  - http://www.zenoss.org/product (product info)
  - http://dev.zenoss.org/trac (wiki/roadmap/tickets)

Register ASAP and get a free Here it is ... Your Moment of Zen t-shirt!
  - http://www.zenoss.org/participate/

We are currently recruiting for the project, including paid positions and
bounty development.
  - http://www.zenoss.org/participate/helpwanted.html

Zenoss product highlights:
  - Monitoring across layers (network, servers, apps, environment...)
  - Monitoring across platforms (windows, linux, unix...)
  - Monitoring across perspectives (availability, performance, events)
  - Automated, object-based modeling of the IT environment
  - Written in Python/Zope...

Enjoy,

Bill Karpovich
[EMAIL PROTECTED]

Erik Dahl
[EMAIL PROTECTED]




___
Zope-Announce maillist  -  Zope-Announce@zope.org
http://mail.zope.org/mailman/listinfo/zope-announce

  Zope-Announce for Announcements only - no discussions

(Related lists - 
 Users: http://mail.zope.org/mailman/listinfo/zope
 Developers: http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-dev] Re: Question about manage_afterAdd in 2.9.1

2006-03-20 Thread Philipp von Weitershausen
Chris Withers wrote:
 I've started seeing warnings like this with an instance I'm moving from
 Zope 2.7 to 2.9:
 
 C:\Zope\2.9.1\lib\python\OFS\subscribers.py:74: DeprecationWarning:
 Products.CookieCrumbler.CookieCrumbler.CookieCrumbler.manage_afterAdd is
 deprecated and will be removed in Zope 2.11, you should use event
 subscribers instead, and meanwhile mark the class with
 five:deprecatedManageAddDelete/
   DeprecationWarning)
 
 Is there an example of exactly what I need to add and where?

The deprecation message tells you what to do :).

Anyways, see
http://blogs.nuxeo.com/sections/blogs/florent_guillaume/2005_11_08_events-in-zope-2-9
for more info.

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


Re: [ZWeb] Version 3

2006-03-20 Thread Andrew Sawyers
On Mon, 2006-03-20 at 08:45 +0100, Michael Haubenwallner wrote:
 Tom Von Lahndorff wrote:
  - What about the login + navbars ?
  
  Will add login as well. Not sure what you mean about navbars? The 
  navigation is up top, the black bar.
Maybe we don't have login on these pages; maybe use a different url for
'managing' the site:  manager.zope.org or something which adds in an
additional skin which includes these macros.  Just an idea.
  
 
 I meant the bar holding the object, folder, user, workflow and global 
 actions, currently displayed in a horizontal bar under the header/banner 
 block. You can't use zope.org (plone) without the actions.
It should be fairly trivial to work these in - remember, these types of
actions are not going to be for the general user populacethus
shouldn't be a main focus for his designs INMNSHO.

Andrew
 
 

 
 Michael
 

___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


Re: [ZWeb] Version 3

2006-03-20 Thread Andrew Sawyers
On Sun, 2006-03-19 at 21:25 -0600, Brad Allen wrote:
   http://www.modscape.com/zope/v3

 
 The Zope News and Zope Products section do seem slightly drab.
 Drab is ok for documention but news stories could use just a
 little bit of zing.
 
The News and Products sections you see now are not going to be paramount
on the page when all is said and done.  We're trying to get some good
catchy text/phrases going for the home page which draws users into the
'meat' of the site.  A smaller presence of the news and products needs
to be considered.

Andrew
 ___
 Zope-web maillist  -  Zope-web@zope.org
 http://mail.zope.org/mailman/listinfo/zope-web

___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


Re: [ZWeb] Version 3

2006-03-20 Thread Michael Haubenwallner

Andrew Sawyers wrote:

On Mon, 2006-03-20 at 08:45 +0100, Michael Haubenwallner wrote:

Tom Von Lahndorff wrote:

- What about the login + navbars ?
Will add login as well. Not sure what you mean about navbars? The 
navigation is up top, the black bar.

Maybe we don't have login on these pages; maybe use a different url for
'managing' the site:  manager.zope.org or something which adds in an
additional skin which includes these macros.  Just an idea.
I meant the bar holding the object, folder, user, workflow and global 
actions, currently displayed in a horizontal bar under the header/banner 
block. You can't use zope.org (plone) without the actions.

It should be fairly trivial to work these in - remember, these types of
actions are not going to be for the general user populacethus
shouldn't be a main focus for his designs INMNSHO.



Understood and ok with me. Its just that we never talked about that 
solution before (i've always seen the modscape mockups as a drop-in 
replacement for the current mode of zope.org operation).


Michael

--
http://zope.org/Members/d2m
http://planetzope.org

___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


Re: [ZWeb] Version 3

2006-03-20 Thread Andrew Sawyers
On Mon, 2006-03-20 at 16:09 +0100, Michael Haubenwallner wrote:
 
 Understood and ok with me. Its just that we never talked about that 
 solution before (i've always seen the modscape mockups as a drop-in 
 replacement for the current mode of zope.org operation).
Forgot to reply all
This thought had never occurred to me, thus the divergence.  I had
always thought developmental work was to move forward the 'new' site -
never deal with the current one.  It was my opinion it was stay as is.

Andrew
 
 Michael
 

___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


Re: [ZWeb] Version 3

2006-03-20 Thread Brad Allen

Here are some comments from Jeff Rush.


Delivered-To: [EMAIL PROTECTED]
Date: Mon, 20 Mar 2006 04:42:26 -0600
From: Jeff Rush [EMAIL PROTECTED]
X-Accept-Language: en-us, en
To: Brad Allen [EMAIL PROTECTED]
Subject: Re: [ZWeb] Version 3

(I'm not a subscriber to the ZWeb list yet, so I'll send my comments to you)

Brad Allen wrote:

 http://www.modscape.com/zope/v3




- the page looks pretty dark/heavy, got a 'daylight' version ?


Not really, no. I don't think this version is dark at all.


I like the colors -- calming and clear.  I suppose if enough people 
dislike it, you could dial up the brightness of the blue a touch.



Bonnie said she liked the lilies, and they do add a nice bit of
understated beauty to the site. I don't know if the naturalistic
imagery means anything, but adding a bit of aliveness
to the page certainly can't hurt.


I like them - they are understated and don't get in the way.


The right side blurbs with icons looked really good at first glance
but on further examination I think the question mark over the
Zope sphere is visually confusing. An alternative might be to
get rid of the question mark overlay.


The question mark either needs to be dropped or enlarged so it 
extends beyond the Zope circle.



The Zope-Power Sites at the bottom only provides one example.
How about a link to more Zope-power sites and/or success stories?


This is a draft - I'm sure there will be more.  A question is how 
will multiple success stories be visually represented?


---
I have bigger questions though.

1. Does the page print well?

2. Is the site to represent -both- Zope2 and Zope3, or just Zope3? 
Wit mentions of Plone, CMF and Zope Products on the drop-down menus, 
it seems to be targeted at Zope2.


3. On those drop-down menus, lose the constant prefix Zope.  For 
example, under Business, we don't need Zope Training, just 
Training.


4. Re the copyright at the bottom - shouldn't that be Zope Foundation instead?

5. I like the drop-down menus, although they won't print.

6. The icon along the right for Zope Docs looks elongated.

Overall it looks like a good start and I like the direction.  It 
needs more filling out to get a good grasp of how the overall site 
will flow.


-Jeff


___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


Re: [ZWeb] Version 3

2006-03-20 Thread Tom Von Lahndorff
About printing. The CSS for printable pages has not been added yet. The 
pages will be printer freindly (inluding menus).


- Original Message - 
From: Andrew Sawyers [EMAIL PROTECTED]

To: Brad Allen [EMAIL PROTECTED]
Cc: zope-web@zope.org
Sent: Monday, March 20, 2006 12:19 PM
Subject: Re: [ZWeb] Version 3





---
I have bigger questions though.

1. Does the page print well?

Dunno, a print css would solve this easily.


2. Is the site to represent -both- Zope2 and Zope3, or just Zope3?
Wit mentions of Plone, CMF and Zope Products on the drop-down menus,
it seems to be targeted at Zope2.

It has always been in my scope of trying to direct this to focus on Zope
the technology, not a specific zope version.


3. On those drop-down menus, lose the constant prefix Zope.  For
example, under Business, we don't need Zope Training, just
Training.

Drop down menus are placeholders - there is actually structre in svn we
are going to be using on the live site.


4. Re the copyright at the bottom - shouldn't that be Zope Foundation 
instead?\

There is no Zope Foundation yet.  Suppose it likely should be when it is
formed.


5. I like the drop-down menus, although they won't print.

Do we care?  Can this be handled in css?




Andrew

___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web 


___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


Re: [ZWeb] Version 3

2006-03-20 Thread Chris Withers

Andrew Sawyers wrote:

Maybe we don't have login on these pages; maybe use a different url for
'managing' the site:  manager.zope.org or something which adds in an
additional skin which includes these macros.  Just an idea.


How would normal users go about submitting news and product releases?

Where would they upload the files?

cheers,

Chris

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

___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-03-20 Thread Jens Vagelpohl


On 20 Mar 2006, at 07:42, Bernd Dorn wrote:

$ make
/usr/local/bin/python2.3 /Users/spuhlema/Desktop/Zope-2.8.6- 
final/setup.py \

build
--build-base=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/ 
python-2.3
--build-lib=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/ 
python-2.3/build-lib
--build-scripts=/Users/spuhlema/Desktop/Zope-2.8.6-final/build- 
base/python-2.3/build-scripts
--build-temp=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/ 
python-2.3/build-temp

running build
running build_py
error: package directory
'build/lib/darwin-8/5/2-i386-2/4/zope/app/traversing/ftests' does not
exist
make: *** [build] Error 1

I guess Python doesn't compile equally on PowerPc and Intel.
Any idea?


you need zlib support compiled into python, this is only done, if  
the zlib header files are found at configure time


do you have it?


Umh, take a look at the error message. Do you see anything that looks  
like a zlib problem? I don't.


jens

___
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] error with repozo.py

2006-03-20 Thread Martin Koekenberg








Hmm,



There could be something
wrong.



I get this:

['',
'/usr/lib/python23.zip', '/usr/lib/python2.3',
'/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk',
'/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages/PIL', '/usr/lib/python2.3/site-packages/gtk-2.0']



How do I set the right
path in Python ?



Regards,



Martin Koekenberg









Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Bernd
Dorn
Verzonden: maandag 20 maart 2006
8:49
Aan: [Zope] List Mailing
Onderwerp: Re: [Zope] error with
repozo.py











On 20.03.2006, at 07:45, Martin Koekenberg wrote:









Hello,



I
get an error when I want to create a backup with repozo.py. 



Traceback
(most recent call last):


File ./repozo.py, line 74, in
?


from ZODB.FileStorage import FileStorage

ImportError:
No module named ZODB.FileStorage



I
already searched with google for a solution. I found that it could be a problem
with PYTHONPATH, but Ive set this path already.





are you sure, looks as if the path is
not correct











you have to set it to
your-zope-installation-directory/lib/python











just startup the python interpreter and type





import sys; sys.path











then it should print the path defined above, if not something is wrong























What
else can be wrong ?



Regards,



Martin Koekenberg









___





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 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: error with repozo.py

2006-03-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin Koekenberg wrote:

 What else can be wrong ?

Just guessing, but could it be that you have not exported the
PYTHONPATH variable?  E.g.:

Without exporting:

 $ PYTHONPATH=/foo
 $ python -c import sys; print sys.path
 ['', '/usr/lib/python24.zip', '/usr/lib/python2.4',
  ...
  '/usr/lib/python2.4/site-packages/gtk-2.0']

Setting on the command line:

 $ PYTHONPATH=/bar python -c import sys; print sys.path
 ['', '/bar', '/usr/lib/python24.zip', '/usr/lib/python2.4',
 ...
 '/usr/lib/python2.4/site-packages/gtk-2.0']

Exporting:

 $ export PYTHONPATH
 $ python -c import sys; print sys.path
 ['', '/foo', '/usr/lib/python24.zip', '/usr/lib/python2.4',
  ...
  '/usr/lib/python2.4/site-packages/gtk-2.0']



Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEHqv1+gerLs4ltQ4RAgP0AKCkLty9VOODcttERF7Dqtt9201vvgCfc6JZ
EDK+lMzz33NVr9p8HFc+81w=
=yvH+
-END 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 )


Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-03-20 Thread manuel spuhler
you need zlib support compiled into python, this is only done, if thezlib header files are found at configure time
do you have it?I have zlib included at configure time
___
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] Newbie zopectl question

2006-03-20 Thread JulianRead

Hi

I have created a zope / plone site which i have deployed on a dedicated
server using linux with fedora core 3.

I have installed zope as root as setup an instance of zope using a different
user.

I am trying to setup zope so that it will start automatically when the
server is rebooted. 
I have created a symlink in rc.d to zopectl however this doesnt seem to
work. 

When i run zopectl i get the message

daemon manager not running 

if i enter the start command zope starts. Is there someway of getting
zopectl to run at startup and for it to automattically use the start
command.

Any help will be greatly appreciated 


--
View this message in context: 
http://www.nabble.com/Newbie-zopectl-question-t1311221.html#a3493768
Sent from the Zope - General forum at Nabble.com.

___
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] Newbie zopectl question

2006-03-20 Thread Tino Wildenhain

JulianRead schrieb:

Hi

I have created a zope / plone site which i have deployed on a dedicated
server using linux with fedora core 3.

I have installed zope as root as setup an instance of zope using a different
user.

I am trying to setup zope so that it will start automatically when the
server is rebooted. 
I have created a symlink in rc.d to zopectl however this doesnt seem to
work. 


You need the symlink in your rc2.d or whatever your runlevel is.
Usually you have some tools to build the link from
rc.d to Ssome numberzopectl in the desired runlevel directory


When i run zopectl i get the message

daemon manager not running 


if i enter the start command zope starts. Is there someway of getting
zopectl to run at startup and for it to automattically use the start
command.


sys V style inits like FC4 uses, call all scripts in the runlevel
which follow the Snumbername schema with the argument start

You system documentation will tell you :-)

Regards
Tino
___
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] acquisition uml modelisation

2006-03-20 Thread thomas desvenain
hello,

do you know where i may find tools for acquisition representation in uml ?

thanks

thomas desvenain
___
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] Finding stylesheet

2006-03-20 Thread John Poltorak
I would like to set up a page template to use the stylesheet my.css if it 
is in the current folder, but if not to use the one in the root folder.

How do I specify this?

-- 
John



___
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] Re: zope 2.8.6 on Mac Intel

2006-03-20 Thread Bernd Dorn


On 20.03.2006, at 09:37, Jens Vagelpohl wrote:



On 20 Mar 2006, at 07:42, Bernd Dorn wrote:

$ make
/usr/local/bin/python2.3 /Users/spuhlema/Desktop/Zope-2.8.6- 
final/setup.py \

build
--build-base=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/ 
python-2.3
--build-lib=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/ 
python-2.3/build-lib
--build-scripts=/Users/spuhlema/Desktop/Zope-2.8.6-final/build- 
base/python-2.3/build-scripts
--build-temp=/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/ 
python-2.3/build-temp

running build
running build_py
error: package directory
'build/lib/darwin-8/5/2-i386-2/4/zope/app/traversing/ftests' does  
not

exist
make: *** [build] Error 1

I guess Python doesn't compile equally on PowerPc and Intel.
Any idea?


you need zlib support compiled into python, this is only done, if  
the zlib header files are found at configure time


do you have it?


Umh, take a look at the error message. Do you see anything that  
looks like a zlib problem? I don't.


last time i installed a zope on debian and forgot to install the zlib  
headers and the error was also far away from complaining about zlib,  
so i thought it might be this


on osx i would suggest using darwinports anyway




jens

___
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 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: Finding stylesheet

2006-03-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John Poltorak wrote:
 I would like to set up a page template to use the stylesheet my.css if it 
 is in the current folder, but if not to use the one in the root folder.
 
 How do I specify this?

Assuming that you mean containing folder (rather than root), you can
just acquire the object and ask for its absolute_url, e.g::

  link type=text/css href=my.css
tal:attributes=href string:${context/my.css/absolute_url} /

If you want the local one, or one in some root folder (but not any
intervening ones), then you probably need to write a PythonScript which
finds the stylesheet file object using whatever logic is appropriate,
and return its absolute_url.  You would then call that script in TAL::

  link type=text/css href=my.css
tal:attributes=href string:${context/find_stylesheet_url} /


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEHtI/+gerLs4ltQ4RAhuiAJ9A7LQmFt+9u2cf6MU7TY5zRlwAHgCgrtow
5d1w6G7vKqrH2hTsqsXdGgU=
=pYTJ
-END 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 )


Re: [Zope] Finding stylesheet

2006-03-20 Thread Paul Winkler
On Mon, Mar 20, 2006 at 03:44:02PM +, John Poltorak wrote:
 I would like to set up a page template to use the stylesheet my.css if it 
 is in the current folder, but if not to use the one in the root folder.
 
 How do I specify this?

This is a very common and basic usage of implicit acquisition.
Something like:

  link rel=stylesheet type=text/css href=
   tal:attributes=href context/my.css/absolute_url /

-- 

Paul Winkler
http://www.slinkp.com
___
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] Finding stylesheet

2006-03-20 Thread John Poltorak
On Mon, Mar 20, 2006 at 11:04:03AM -0500, Paul Winkler wrote:
 On Mon, Mar 20, 2006 at 03:44:02PM +, John Poltorak wrote:
  I would like to set up a page template to use the stylesheet my.css if it 
  is in the current folder, but if not to use the one in the root folder.
  
  How do I specify this?
 
 This is a very common and basic usage of implicit acquisition.
 Something like:
 
   link rel=stylesheet type=text/css href=
tal:attributes=href context/my.css/absolute_url /

I did have that although it didn't work properly but I understand why 
now.

If my.css contains

background-image: url(images/background.gif);

how would 'images/'be resolved? (Assuming I have an 'images folder in the 
current folder and its parent.)
 
 -- 
 
 Paul Winkler
 http://www.slinkp.com


-- 
John


___
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] Newbie zopectl question

2006-03-20 Thread JulianRead

Do you know if it is possible to get zopectl to run using rc.local?
--
View this message in context: 
http://www.nabble.com/Newbie-zopectl-question-t1311221.html#a3496682
Sent from the Zope - General forum at Nabble.com.

___
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] Finding stylesheet

2006-03-20 Thread Paul Winkler
On Mon, Mar 20, 2006 at 04:22:12PM +, John Poltorak wrote:
 If my.css contains
 
 background-image: url(images/background.gif);
 
 how would 'images/'be resolved? (Assuming I have an 'images folder in the 
 current folder and its parent.)

This is decided by the client.
http://www.htmlhelp.com/reference/css/units.html#urls

-- 

Paul Winkler
http://www.slinkp.com
___
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] Re: Newbie install from source

2006-03-20 Thread Steve James
Hi

Courtesy reply ( I did not cc zope@zope.org)

Regarding posting to a Plone list you're right :-)

I was so busy learing how to install on Linux from source I did not notice
that I had signed up to not quite the appropriate mailing list for my
question.

I think I'll lurk though and soak up some of you kind folks wisdom.


Thanks.

Its running fine now.

Regards

Steve


___
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: Newbie zopectl question

2006-03-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

JulianRead wrote:
 Do you know if it is possible to get zopectl to run using rc.local?

Yes.

Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEHuGN+gerLs4ltQ4RAhAcAJ4pzdZ7KKEScqeUieEo8gmeWSwVsgCgjfqE
b1BIrK8OlOtTQCrPXFyGfAs=
=zKk0
-END 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] newbie zopectl

2006-03-20 Thread JulianRead

Hi i have set up a plone site and here at :

http://www.myplonesite.com:8080/ploneinstance/mypage

and i want it to look like

http://www.myplonesite.com/mypage

what is the best way to achieve this

server setup is linux/apache/zope2.8.6/plone2.1.2

i have looked at virutalhostmonster but is it more efficient to use apache
mod_rewrite rules?

Please give examples as mod_rewrite leaves me confused.

Thanks  
--
View this message in context: 
http://www.nabble.com/newbie-zopectl-t1312756.html#a3498347
Sent from the Zope - General forum at Nabble.com.

___
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] zopectl rc.local newbie question

2006-03-20 Thread JulianRead

Hi i am trying to get zopectl to work so that i can get my zope site to start
automatically when the server reboots.

I have put the following code into rc.local

/home/default/inst2.isolve-unix.co.uk/zope/bin/zopectl start

This doesnt work i have checked that it is definatley the right directory
and rc.local seems to be working does anyone have any idea where im going
wrong

Thanks
--
View this message in context: 
http://www.nabble.com/zopectl-rc.local-newbie-question-t1312938.html#a3498950
Sent from the Zope - General forum at Nabble.com.

___
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] newbie zopectl

2006-03-20 Thread Paul Winkler
On Mon, Mar 20, 2006 at 09:48:03AM -0800, JulianRead wrote:
 
 Hi i have set up a plone site and here at :
 
 http://www.myplonesite.com:8080/ploneinstance/mypage
 
 and i want it to look like
 
 http://www.myplonesite.com/mypage
 
 what is the best way to achieve this
 
 server setup is linux/apache/zope2.8.6/plone2.1.2
 
 i have looked at virutalhostmonster but is it more efficient to use apache
 mod_rewrite rules?

You typically use both.
http://zopewiki.org/ZopeAndApache

-- 

Paul Winkler
http://www.slinkp.com
___
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] acquisition uml modelisation

2006-03-20 Thread Dieter Maurer
thomas desvenain wrote at 2006-3-20 15:43 +0100:
do you know where i may find tools for acquisition representation in uml ?

I fear, UML does not know about this type of relation (and therefore,
tools will not support it).

You will need to look for an UML extension mechanism and use it
to represent acquisition type relationships.


-- 
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] Using tal:attributes in XML with non-ASCII characters

2006-03-20 Thread Dieter Maurer
Andrew Veitch wrote at 2006-3-20 01:53 +:
 ...
 input name=blah type=text tal:attributes=value python:chr 
(200).encode('utf-8') /
This gives:

Error Type: UnicodeDecodeError
Error Value: 'ascii' codec can't decode byte 0x80 in position 0:  
ordinal not in range(128)

Sure, you are using str.encode in a wrong way:

  str.encode('uft-8') is equivalent to
  unicode(str, getdefaultencoding()).encode('utf-8').


What encoding should your 200 use?

   Convert it to unicode using this encoding (and let the
   ZPublisher convert the unicode to utf-8).


By the way, your exception must come from somewhere else
as chr(200) cannot lead to a byte 0x80.

It is always worth to look at the traceback. It tells you
where the exception really comes from...

...
input name=blah type=text tal:attributes=value python:chr(200) /

Then this will work in HTML mode but will fail in XML mode.

You should use Unicode in XML mode...

 ...
 I could provide patches, if useful.

I would be very interested to see you patches.

Attached.

--- TALDefs.py	2005-08-17 10:48:18.0 +0200
+++ /home/dieter/Z/Base/lib/python/TAL/TALDefs.py	2005-11-12 09:29:03.0 +0100
@@ -111,8 +111,15 @@
 
 
 import re
-_attr_re = re.compile(r\s*([^\s]+)\s+([^\s].*)\Z, re.S)
-_subst_re = re.compile(r\s*(?:(text|structure)\s+)?(.*)\Z, re.S)
+# DM 2005-11-12: support mltext (Markup Language text)
+#   as additional quote type. It corresponds to the SGML RCDATA
+#   (Replacable Character Data) which may contain entity references
+#   but no other markup. Correspondingly, mltext quotes '' but
+#   leaves alone character entities.
+#_attr_re = re.compile(r\s*([^\s]+)\s+(?:(text|structure)\s+)?([^\s].*)\Z, re.S)
+#_subst_re = re.compile(r\s*(?:(text|structure)\s+)?(.*)\Z, re.S)
+_attr_re = re.compile(r\s*([^\s]+)\s+(?:(text|structure|mltext)\s+)?([^\s].*)\Z, re.S)
+_subst_re = re.compile(r\s*(?:(text|structure|mltext)\s+)?(.*)\Z, re.S)
 del re
 
 def parseAttributeReplacements(arg, xml):
@@ -121,12 +128,12 @@
 m = _attr_re.match(part)
 if not m:
 raise TALError(Bad syntax in attributes:  + `part`)
-name, expr = m.group(1, 2)
+name, quote_type, expr = m.group(1, 2, 3)
 if not xml:
 name = name.lower()
 if dict.has_key(name):
 raise TALError(Duplicate attribute name in attributes:  + `part`)
-dict[name] = expr
+dict[name] = quote_type, expr
 return dict
 
 def parseSubstitution(arg, position=(None, None)):
--- TALGenerator.py	2005-08-17 10:48:18.0 +0200
+++ /home/dieter/Z/Base/lib/python/TAL/TALGenerator.py	2005-11-12 10:52:29.0 +0100
@@ -284,6 +284,9 @@
 cexpr = self.compileExpression(expr)
 if key == text:
 self.emit(insertText, cexpr, [])
+# DM 2005-11-12: 'mltext' support (see 'TALDefs' for details)
+elif key == mltext:
+self.emit(insertMLText, cexpr, [])
 else:
 assert key == structure
 self.emit(insertStructure, cexpr, {}, [])
@@ -315,6 +318,9 @@
 program = self.popProgram()
 if key == text:
 self.emit(insertText, cexpr, program)
+# DM 2005-11-12: 'mltext' support (see 'TALDefs' for details)
+elif key == mltext:
+self.emit(insertMLText, cexpr, program)
 else:
 assert key == structure
 self.emit(insertStructure, cexpr, attrDict, program)
@@ -352,8 +358,11 @@
 assert action == I18N_EXPRESSION
 key, expr = parseSubstitution(expression)
 cexpr = self.compileExpression(expr)
+# DM 2005-11-12: 'mltext' support (see 'TALDefs' for details)
+#self.emit('i18nVariable',
+#  varname, program, cexpr, int(key == structure))
 self.emit('i18nVariable',
-  varname, program, cexpr, int(key == structure))
+  varname, program, cexpr, key or 'text')
 
 def emitTranslation(self, msgid, i18ndata):
 program = self.popProgram()
@@ -464,13 +473,13 @@
 for item in attrlist:
 key = item[0]
 if repldict.has_key(key):
-expr, xlat, msgid = repldict[key]
-item = item[:2] + (replace, expr, xlat, msgid)
+expr, quote_type, xlat, msgid = repldict[key]
+item = item[:2] + (replace, expr, quote_type, xlat, msgid)
 del repldict[key]
 newlist.append(item)
 # Add dynamic-only attributes
-for key, (expr, xlat, msgid) in repldict.items():
-newlist.append((key, None, insert, expr, xlat, msgid))
+for key, (expr, quote_type, xlat, msgid) in repldict.items():
+newlist.append((key, None, insert, expr, quote_type, xlat, msgid))
 return newlist
 
 def emitStartElement(self, name, attrlist, taldict, metaldict, i18ndict,
@@ -675,17 +684,17 @@
 i18nattrs = {}
 # Convert 

Re: [Zope] Re: zope 2.8.6 on Mac Intel

2006-03-20 Thread manuel spuhler
on osx i would suggest using darwinports anywayTried with darwinports compiled form source (best on mac intel), and got the same error. 
$ ./configure --with-python=/opt/local/bin/python2.3  make... error: package directory 'build/lib/darwin-8/5/2-i386-2/4/zope/app/traversing/ftests' does not existmake: *** [build] Error 1
Anybody can tell me where I could start to try to fix this?
___
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] Re: zope 2.8.6 on Mac Intel

2006-03-20 Thread Bernd Dorn


On 20.03.2006, at 20:46, manuel spuhler wrote:


on osx i would suggest using darwinports anyway


Tried with darwinports compiled form source (best on mac intel),  
and got the same error.


$ ./configure --with-python=/opt/local/bin/python2.3  make
...
error: package directory 'build/lib/darwin-8/5/2-i386-2/4/zope/app/ 
traversing/ftests' does not exist

make: *** [build] Error 1


i don't know the reason, but for me the above path is wrong, on other  
archs, it is a single directory for the build


i think it should read: build/lib/darwin-8.5.2-i386-2.4/zope/app/ 
traversing/ftests


somehow the dots got replaced

maybe it is a zpkgsetup problem?

on my old powerbook it is:
lib.darwin-8.5.0-Power_Macintosh-2.4

btw: there is something wrong with the python version, you configured  
2.3 but the lib directory ends with 2/4(2.4)






Anybody can tell me where I could start to try to fix this?


___
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 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: Newbie zopectl question

2006-03-20 Thread Maurits van Rees
On 2006-03-20, JulianRead wrote:
 I have installed zope as root as setup an instance of zope using a different
 user.

 I am trying to setup zope so that it will start automatically when the
 server is rebooted. 
 I have created a symlink in rc.d to zopectl however this doesnt seem to
 work. 

This tries to start zope as the user root, not as that different user.
I do think you want to start it as that other user.  The following
article may help you:

http://www.debian-administration.org/articles/372

Basically, login as that user and add a crontab entry with 'crontab
-e' that contains something like this:

@reboot /home/someuser/zopeinstance/bin/zopectl start

Then test it of course. :)

-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/
   GnuPG key | http://maurits.vanrees.org/var/gpgkey.asc
Do only what only you can do. --- Edsger Wybe Dijkstra

___
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] best practice, CSS Stylesheets

2006-03-20 Thread John Huttley

Hi,
What is the best way of handling CSS?
I've looked at ZStylesheets, but it is buggy and uses depreciated 
functions that will not be available in 2.10.


All advice welcome,
--John


___
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] Using tal:attributes in XML with non-ASCII characters

2006-03-20 Thread Chris Withers

Andrew Veitch wrote:

Error Type: UnicodeDecodeError
Error Value: 'ascii' codec can't decode byte 0x80 in position 0: ordinal 
not in range(128)


If I change the input line to:

input name=blah type=text tal:attributes=value python:chr(200) /

Then this will work in HTML mode but will fail in XML mode.


This all sounds familiar. I remember having loads of fun with 
MailTemplates, which work predominantly in XML mode.


The rules I have from working with them are as follows:

If content_type is set to text/html, then:

- any unicodes should be encoded using the character set you
  intend to use for the final mail encoding

- you are responsible for ensuring that any strings are encoded
  with the correct character set, which should be that used for
  the final mail encoding.

If content_type is set to anything else:

- all string-like data inserted into the Mail Template during
  rendering must be in the form of unicode objects.


So, in your case, make sure everything you insert with any tal is a 
unicode object.


hth,

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] error with repozo.py

2006-03-20 Thread Chris Withers

Guys,

zope@zope.org is a *plain text* list, please stop posting html...

Chris

Martin Koekenberg wrote:

Hmm,

 


There could be something wrong.

 


I get this:

['', '/usr/lib/python23.zip', '/usr/lib/python2.3',
'/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk',
'/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages/PIL',
'/usr/lib/python2.3/site-packages/gtk-2.0']

 


How do I set the right path in Python ?

 


Regards,

 


Martin Koekenberg

  _  


Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Bernd Dorn
Verzonden: maandag 20 maart 2006 8:49
Aan: [Zope] List Mailing
Onderwerp: Re: [Zope] error with repozo.py

 

 


On 20.03.2006, at 07:45, Martin Koekenberg wrote:





Hello,

 

I get an error when I want to create a backup with repozo.py. 

 


Traceback (most recent call last):

  File ./repozo.py, line 74, in ?

from ZODB.FileStorage import FileStorage

ImportError: No module named ZODB.FileStorage

 


I already searched with google for a solution. I found that it could be a
problem with PYTHONPATH, but I've set this path already.

are you sure, looks as if the path is not correct

 


you have to set it to your-zope-installation-directory/lib/python

 


just startup the python interpreter and type

import sys; sys.path

 


then it should print the path defined above, if not something is wrong

 

 






 


What else can be wrong ?

 


Regards,

 


Martin Koekenberg

 


___

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


--
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] best practice, CSS Stylesheets

2006-03-20 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 20 Mar 2006, at 22:26, John Huttley wrote:


Hi,
What is the best way of handling CSS?
I've looked at ZStylesheets, but it is buggy and uses depreciated  
functions that will not be available in 2.10.


They are just simple text files and do not need any handling. You  
could just put them in a simple Zope File object, give it content  
type text/css, and be done with it.


jens

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEHzjjRAx5nvEhZLIRAsz1AJ9UmzAkpjHYfq96MkVFoJTJg19MhACePPa9
71huwoMNp75MkxpD2lBBNWk=
=Oig9
-END 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] files for xp

2006-03-20 Thread wavemaster2000

does any one have the required build for the mysql-python connection for zope
on windows. I have been trying for the last 2 weeks and close to giving up,
if some one has zmysql working on xp, please let meknow how to get this
done.

I have tried all of these links but havnt had no luck

http://www.devshed.com/c/a/Zope/Zope-And-MySQL/2/
http://www.transana.org/developers/setup/MySQLPython_Win_MU.htm
http://mail.python.org/pipermail/python-list/2004-December/255184.html
http://www.zope.org/Members/alanpog/zmysqlda_steps
please help
thanks
--
View this message in context: 
http://www.nabble.com/files-for-xp-t1315165.html#a3506041
Sent from the Zope - General forum at Nabble.com.

___
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] Strange errors while 'make'ing

2006-03-20 Thread a blob of green gelatin

Hi all,

I've been checking out the archives in an attempt to find an 
already-published answer to my problem and have only found one thread 
which comes close to describing what I'm seeing.


When run 'configure', there are no problems.  Once I try making things, I 
get strange errors which I suppose are probably python-related:


slimemold[52]:/tmp/Zope-2.9.1% ./configure --prefix=/usr/local/bin/zope

Configuring Zope installation

Testing for an acceptable Python interpreter...

Python version 2.4.1 found at /usr/bin/python
Python version 2.4.1 found at /usr/bin/python2
Python version 2.4.1 found at /usr/bin/python2.4
Python version 2.4.2 found at /usr/local/bin/python

The optimum Python version (2.4.2) was found at /usr/local/bin/python.

slimemold[53]:/tmp/Zope-2.9.1% make
/usr/local/bin/python install.py -q build
In file included from 
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeModuleTemplate.c:335,

 from Dependencies/BTrees-Zope-2.9.1/BTrees/_fsBTree.c:70:
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c: In function 
âgetBucketEntryâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:238: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:242: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:249: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:252: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
In file included from 
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeModuleTemplate.c:336,

 from Dependencies/BTrees-Zope-2.9.1/BTrees/_fsBTree.c:70:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function 
â_bucket_getâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:93: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function 
âBucket_maxminKeyâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:713: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function 
âbucket_keysâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:829: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function 
âbucket_valuesâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:867: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function 
âbucket_itemsâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:907: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:911: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function 
âbucket_byValueâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:955: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:961: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function 
âbucket_getstateâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:1134: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:1140: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:1151: warning: 
pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ 
differ in signedness
In file included from 
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeModuleTemplate.c:337,

 from Dependencies/BTrees-Zope-2.9.1/BTrees/_fsBTree.c:70:
Dependencies/BTrees-Zope-2.9.1/BTrees/SetTemplate.c: In function 
âset_itemâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/SetTemplate.c:266: warning: pointer 
targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in 
signedness
In file included from 
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeModuleTemplate.c:338,

 from Dependencies/BTrees-Zope-2.9.1/BTrees/_fsBTree.c:70:
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeTemplate.c: In function 
âBTree_getstateâ:

Re: [Zope] Strange errors while 'make'ing

2006-03-20 Thread Chris McDonough
These are warnings coming from GCC (as opposed to errors, which would  
prevent compilation from finishing).


GCC 4.X emits these pointer signedness warnings whereas earlier GCC  
versions did not.  This issue has been fixed on the Zope trunk, I  
believe (the codebase which will become Zope 2.10).


- C


On Mar 20, 2006, at 9:23 PM, a blob of green gelatin wrote:


Hi all,

I've been checking out the archives in an attempt to find an  
already-published answer to my problem and have only found one  
thread which comes close to describing what I'm seeing.


When run 'configure', there are no problems.  Once I try making  
things, I get strange errors which I suppose are probably python- 
related:


slimemold[52]:/tmp/Zope-2.9.1% ./configure --prefix=/usr/local/bin/ 
zope


Configuring Zope installation

Testing for an acceptable Python interpreter...

Python version 2.4.1 found at /usr/bin/python
Python version 2.4.1 found at /usr/bin/python2
Python version 2.4.1 found at /usr/bin/python2.4
Python version 2.4.2 found at /usr/local/bin/python

The optimum Python version (2.4.2) was found at /usr/local/bin/python.

slimemold[53]:/tmp/Zope-2.9.1% make
/usr/local/bin/python install.py -q build
In file included from Dependencies/BTrees-Zope-2.9.1/BTrees/ 
BTreeModuleTemplate.c:335,
 from Dependencies/BTrees-Zope-2.9.1/BTrees/ 
_fsBTree.c:70:
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c: In  
function âgetBucketEntryâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:238:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:242:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:249:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:252:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
In file included from Dependencies/BTrees-Zope-2.9.1/BTrees/ 
BTreeModuleTemplate.c:336,
 from Dependencies/BTrees-Zope-2.9.1/BTrees/ 
_fsBTree.c:70:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function  
â_bucket_getâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:93: warning:  
pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function  
âBucket_maxminKeyâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:713:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function  
âbucket_keysâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:829:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function  
âbucket_valuesâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:867:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function  
âbucket_itemsâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:907:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:911:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function  
âbucket_byValueâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:955:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:961:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function  
âbucket_getstateâ:
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:1134:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:1140:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:1151:  
warning: pointer targets in passing argument 1 of  
âPyString_FromStringAndSizeâ differ in signedness
In file included from Dependencies/BTrees-Zope-2.9.1/BTrees/ 
BTreeModuleTemplate.c:337,
 from Dependencies/BTrees-Zope-2.9.1/BTrees/ 
_fsBTree.c:70:
Dependencies/BTrees-Zope-2.9.1/BTrees/SetTemplate.c: In function  
âset_itemâ: