Re: [Zope] charset problems (utf-8)

2012-02-10 Thread Hugo Ramos
Hi Miguel,

Yes, as I wrote in my first email, all encoding options in zope.conf
are set to utf-8...



On Thu, Feb 9, 2012 at 9:13 PM, Miguel Beltran R. yourpa...@gmail.com wrote:


 2012/2/6 Hugo Ramos ram...@gmail.com



 But this doesn't seem to be the problem because templates encoded as
 utf-8 or iso-8859-1 all have the same problem.

 Any more ideas?


 are you played witth default-zpublisher-encoding option in zope.conf?

 
 Lo bueno de vivir un dia mas
 es saber que nos queda un dia menos de vida



-- 
Hugo Ramos - IT Project Manager
E: ram...@gmail.com
W: www.hugoramos.eu

Nobody expects the Spanish Inquisition! - Monty Python's

Para visualizar este email em 3D, bata com uma bola de snooker na
testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] charset problems (utf-8)

2012-02-06 Thread Hugo Ramos
I guess no one has charset problems...



On Thu, Feb 2, 2012 at 6:06 PM, Hugo Ramos ram...@gmail.com wrote:
 Yellow,

 I've noticed charset problems displaying HTML pages.

 Let's say I want to display a page using a DTML Method like this:

 html
 head
 ...
 /head

 body
 á Á à À ç
 /body
 /html

 This page is ok and I can see the portuguese letters fine.

 The problem starts when I do this:

 html
 head
 ...
 /head

 body
 á Á à À ç br
 dtml-var sometextfield
 /body
 /html

 The first line of characters shows some strange characters and the
 sometextfield shows up fine even if it has the same portuguese
 characters.


 sometextfield comes from a mySQL server using utf-8 as charset and collation.

 zope.conf has the following:

 rest-input-encoding utf-8
 rest-output-encoding utf-8

 The browsers also have UTF-8 as the encoding (safari, firefox and
 chrome) all show me the same problem.

 I also noticed some strange behavior...
 If I create á Á à À ç as a property field using ustring and call it
 as dtml-var someproperty also gets fine in the browser.

 Anyone seen this??? Double encoding maybe???


 TIA

 --
 Hugo Ramos - IT Project Manager
 E: ram...@gmail.com
 W: www.hugoramos.eu

 Nobody expects the Spanish Inquisition! - Monty Python's

 Para visualizar este email em 3D, bata com uma bola de snooker na
 testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.



-- 
Hugo Ramos - IT Project Manager
E: ram...@gmail.com
W: www.hugoramos.eu

Nobody expects the Spanish Inquisition! - Monty Python's

Para visualizar este email em 3D, bata com uma bola de snooker na
testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] charset problems (utf-8)

2012-02-06 Thread Hugo Ramos
The correct prefix in the HTML header (meta http-equiv=Content-Type
content=text/html; charset=utf-8 is not needed because it affects
the browser behavior only and all my 3 browsers are set to UTF-8 by
default.

I've checked and I have some templates encoded as utf-8 and others as
iso-8859-1. This happens because some of the templates (mainly the
ones encoded as iso-8859-1) come from old data.fs that I've upgraded
and maintained over the years...
But this doesn't seem to be the problem because templates encoded as
utf-8 or iso-8859-1 all have the same problem.

Any more ideas?


BTW, any1 knows about some script I can use to encode everything in my
data.fs to utf-8? That would be very useful!




On Mon, Feb 6, 2012 at 2:16 PM, Thierry Florac thierry.flo...@onf.fr wrote:

 Hi,

 As a french, I had many charset problems at first because of our
 accentuated characters...

 But your problems are quite strange if everything is encoded in UTF-8.

 Do you have the correct prefix in your HTML template as well as the
 correct HTTP headers ?
 Can you check that your template is really encoded in UTF-8 ??

 Regards,
 Thierry


 Le Mon, 06 Feb 2012 12:38:22 +,
  Hugo Ramos ram...@gmail.com a écrit:

 I guess no one has charset problems...



 On Thu, Feb 2, 2012 at 6:06 PM, Hugo Ramos ram...@gmail.com wrote:
  Yellow,
 
  I've noticed charset problems displaying HTML pages.
 
  Let's say I want to display a page using a DTML Method like this:
 
  html
  head
  ...
  /head
 
  body
  á Á à À ç
  /body
  /html
 
  This page is ok and I can see the portuguese letters fine.
 
  The problem starts when I do this:
 
  html
  head
  ...
  /head
 
  body
  á Á à À ç br
  dtml-var sometextfield
  /body
  /html
 
  The first line of characters shows some strange characters and the
  sometextfield shows up fine even if it has the same portuguese
  characters.
 
 
  sometextfield comes from a mySQL server using utf-8 as charset and
  collation.
 
  zope.conf has the following:
 
  rest-input-encoding utf-8
  rest-output-encoding utf-8
 
  The browsers also have UTF-8 as the encoding (safari, firefox and
  chrome) all show me the same problem.
 
  I also noticed some strange behavior...
  If I create á Á à À ç as a property field using ustring and call
  it as dtml-var someproperty also gets fine in the browser.
 
  Anyone seen this??? Double encoding maybe???
 
 
  TIA
 
  --
  Hugo Ramos - IT Project Manager
  E: ram...@gmail.com
  W: www.hugoramos.eu
 
  Nobody expects the Spanish Inquisition! - Monty Python's
 
  Para visualizar este email em 3D, bata com uma bola de snooker na
  testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.



-- 
Hugo Ramos - IT Project Manager
E: ram...@gmail.com
W: www.hugoramos.eu

Nobody expects the Spanish Inquisition! - Monty Python's

Para visualizar este email em 3D, bata com uma bola de snooker na
testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] charset problems (utf-8)

2012-02-06 Thread Hugo Ramos
Is there any tool I can use to convert all objects in my data.fs to utf-8?




On Mon, Feb 6, 2012 at 3:24 PM, Dragos Chirila objectval...@gmail.com wrote:
 Hi,

 You have to make sure that everything has the same encoding (strings, text
 values). I recomend you to convert everything to unicode and then put
 something like below as a first line in your page:

 span
 tal:replace=python:request.RESPONSE.setHeader('content-type','text/html;charset=utf-8')
 /

 and in the HEAD

 meta http-equiv=Content-Type content=text/html; charset=utf-8 /

 HTH,
 Dragos


 On Mon, Feb 6, 2012 at 2:38 PM, Hugo Ramos ram...@gmail.com wrote:

 I guess no one has charset problems...



 On Thu, Feb 2, 2012 at 6:06 PM, Hugo Ramos ram...@gmail.com wrote:
  Yellow,
 
  I've noticed charset problems displaying HTML pages.
 
  Let's say I want to display a page using a DTML Method like this:
 
  html
  head
  ...
  /head
 
  body
  á Á à À ç
  /body
  /html
 
  This page is ok and I can see the portuguese letters fine.
 
  The problem starts when I do this:
 
  html
  head
  ...
  /head
 
  body
  á Á à À ç br
  dtml-var sometextfield
  /body
  /html
 
  The first line of characters shows some strange characters and the
  sometextfield shows up fine even if it has the same portuguese
  characters.
 
 
  sometextfield comes from a mySQL server using utf-8 as charset and
  collation.
 
  zope.conf has the following:
 
  rest-input-encoding utf-8
  rest-output-encoding utf-8
 
  The browsers also have UTF-8 as the encoding (safari, firefox and
  chrome) all show me the same problem.
 
  I also noticed some strange behavior...
  If I create á Á à À ç as a property field using ustring and call it
  as dtml-var someproperty also gets fine in the browser.
 
  Anyone seen this??? Double encoding maybe???
 
 
  TIA
 
  --
  Hugo Ramos - IT Project Manager
  E: ram...@gmail.com
  W: www.hugoramos.eu
 
  Nobody expects the Spanish Inquisition! - Monty Python's
 
  Para visualizar este email em 3D, bata com uma bola de snooker na
  testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.



 --
 Hugo Ramos - IT Project Manager
 E: ram...@gmail.com
 W: www.hugoramos.eu

 Nobody expects the Spanish Inquisition! - Monty Python's

 Para visualizar este email em 3D, bata com uma bola de snooker na
 testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.
 ___
 Zope maillist  -  Zope@zope.org
 https://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  https://mail.zope.org/mailman/listinfo/zope-announce
  https://mail.zope.org/mailman/listinfo/zope-dev )




 --
 Dragos Chirila
 objectval...@gmail.com
 (+4) 0722 395375




-- 
Hugo Ramos - IT Project Manager
E: ram...@gmail.com
W: www.hugoramos.eu

Nobody expects the Spanish Inquisition! - Monty Python's

Para visualizar este email em 3D, bata com uma bola de snooker na
testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] CookieCrumbler, any new versions or replacement?

2012-02-02 Thread Hugo Ramos
Yellow,

I need to reuse a web application I developed around 2005/2006. This
App was using CookieCrumbler as it's only authentication method but it
seems that after zope 2.11.x the product is broken as it has a few
imports from deprecated classes.

Anyone knows about CookieCrumbler versions above 1.2 or some other
replacement for this product?


TIA

-- 
Hugo Ramos - IT Project Manager
E: ram...@gmail.com
W: www.hugoramos.eu

Nobody expects the Spanish Inquisition! - Monty Python's

Para visualizar este email em 3D, bata com uma bola de snooker na
testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] charset problems (utf-8)

2012-02-02 Thread Hugo Ramos
Yellow,

I've noticed charset problems displaying HTML pages.

Let's say I want to display a page using a DTML Method like this:

html
head
...
/head

body
á Á à À ç
/body
/html

This page is ok and I can see the portuguese letters fine.

The problem starts when I do this:

html
head
...
/head

body
á Á à À ç br
dtml-var sometextfield
/body
/html

The first line of characters shows some strange characters and the
sometextfield shows up fine even if it has the same portuguese
characters.


sometextfield comes from a mySQL server using utf-8 as charset and collation.

zope.conf has the following:

rest-input-encoding utf-8
rest-output-encoding utf-8

The browsers also have UTF-8 as the encoding (safari, firefox and
chrome) all show me the same problem.

I also noticed some strange behavior...
If I create á Á à À ç as a property field using ustring and call it
as dtml-var someproperty also gets fine in the browser.

Anyone seen this??? Double encoding maybe???


TIA

-- 
Hugo Ramos - IT Project Manager
E: ram...@gmail.com
W: www.hugoramos.eu

Nobody expects the Spanish Inquisition! - Monty Python's

Para visualizar este email em 3D, bata com uma bola de snooker na
testa e fixe o ecrã durante 5 minutos a uma distância de 20cm.
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] zope.contenttype 3.5.1 install

2010-11-12 Thread Hugo Ramos
Yellow,

Can someone tell me how to install zope.contenttype 3.5.1 on my
current Zope 2.12.3 containing zope.contenttype-3.4.2-py2.6.egg?


TIA

-- 
Hugo Ramos - IT Project Manager
E: ram...@gmail.com
W: www.hugoramos.eu

Nobody expects the Spanish Inquisition! - Monty Python's
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope utf-8 problem using MySQL

2008-03-22 Thread Hugo Ramos
What would you recommend? :-)


On Sat, Mar 22, 2008 at 8:49 AM, Tino Wildenhain [EMAIL PROTECTED] wrote:
 Hugo Ramos wrote:
   yellow,
  
   It's a question of taste... I use a Macbook Pro/Leopard laptop instead
   of a PC/win32 laptop... Also a question of taste! :-)

  Guess you got the taste thing a bit wrong ;-) MySQL is the PC/win32
  in your picture :-)

  Cheers
  Tino




-- 
Hugo Ramos
IT Project Manager
http://www.hugoramos.eu/
[EMAIL PROTECTED]
___
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 utf-8 problem using MySQL

2008-03-21 Thread Hugo Ramos
yellow,

I retrive the data using a Z MySQL Database Connection and the
corresponding Z SQL Method.
Everything works fine but the only way to get the utf-8 data is using
SET NAMES 'utf-8' before the select statement.

I wonder what is wrong... Is it possible to centralize this utf-8
setting in 1 place instead of using it on *EVERY* Z SQL Method???

Thanks
Hugo



On Fri, Mar 21, 2008 at 7:50 PM, Dieter Maurer [EMAIL PROTECTED] wrote:
 Hugo Ramos wrote at 2008-3-19 18:11 +:
   ...

 The problem is that when retrieving data from a table the
  international chars become alien symbols...

  How do you retrieve the data?

  You should check the data immediately when you receive it
  from the database. If it is already wrong at this place,
  you know there is a problem with your database access -- maybe
  your utf-8 configuration is ineffective for some reason.



  --
  Dieter




-- 
Hugo Ramos
IT Project Manager
http://www.hugoramos.eu/
[EMAIL PROTECTED]
___
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 utf-8 problem using MySQL

2008-03-21 Thread Hugo Ramos
yellow,

It's a question of taste... I use a Macbook Pro/Leopard laptop instead
of a PC/win32 laptop... Also a question of taste! :-)


Thanks
Hugo


On Fri, Mar 21, 2008 at 8:23 PM, Tino Wildenhain [EMAIL PROTECTED] wrote:
 Hugo Ramos wrote:
   Yellow ppl,
  
   I'm using Zope 2.10.5 + MySQL 5.0.51a + MySQL-python-1.2.2.

  Why? I mean, is there a special business reason to use MySQL?
  Just curious...


  T.




-- 
Hugo Ramos
IT Project Manager
http://www.hugoramos.eu/
[EMAIL PROTECTED]
___
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.11.x and 2.10.x

2008-02-27 Thread Hugo Ramos
Hi Baiewola,

I've been using Zope on Macs a few years now.

I can tell you that Zope will work on Leopard but only with Python 2.4.4
It's not an OS X issue... Zope was built on Python 2.4.4 so it will
only work with this version of Python.


CU
Hugo



On Wed, Feb 27, 2008 at 1:40 PM, baiewola [EMAIL PROTECTED] wrote:
 I want to install Zope 2.10.5 or 2.11.0-al on Mac OSX 10.5.2, which
  comes pre-installed with Python 2.5.1. Install docs for both say they
  don't work with 2.5.

  Does that mean they don't work with anything 2.5 and above, or only
  version 2.5 specifically? Has anyone been able to install either of
  these Zopes with Python 2.5.1?

  Thanks!



   
 
  Looking for last minute shopping deals?
  Find them fast with Yahoo! Search.  
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping
  ___
  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 )




-- 
Hugo Ramos - [EMAIL PROTECTED]
IT Project Manager

~~ @ ~~
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
http://otuggapoesia.blogspot.com/
http://otugga.blogspot.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] MySQL-python-1.2.2 breaks compiling on Mac OS X 10.5 (Andy Dustman?)

2008-02-21 Thread Hugo Ramos
Hello David,

It makes sense to me! The only thing I was using as a binary was
Python 2.4.4 universal binary.
I guess if I was using Python from the source it should work then.

Thank you very much.

Hugo


On Thu, Feb 21, 2008 at 3:01 AM, David Pratt [EMAIL PROTECTED] wrote:
 Hi Hugo. I believe 'file is not of required architecture' may be the
  clue here. Ever since mac went to universal binaries, folks with ppc
  have been having trouble since it is compiled with i386 arch flags and
  vice versa for folks with intel macs (with ppc arch flags). The only way
  to get around this is to compile a universal build, use universal
  binaries, or build for your own architecture. There is a large amount of
  software out there that does not do the right thing.

  For myself, I build my own software including python and I try and keep
  away from the universal insanity. On a mac, many folks use macports
  without the universal build. If you choose to build your own software,
  you can place it in the /opt directory to prevent it from affecting your
  system software. This is where your macports software will go if you use
  it. You will also need to modify your path to ensure that your compiled
  software is obtained over system software.

  I see that your issue was solved with a universal build. This probably
  just confirms what I have written. This may be alright until you run
  into the next snag with something else you need to compile. Personally,
  I got tired of the consistent problems trying to build software with the
  universal python.

  Regards,
  David



  Hugo Ramos wrote:
   Hello Chetan,
  
   Well thank you very much! I must be very tired to forget to compile
   MySQL without --enable-thread-safe-client !!!
   It seems that MySQL-python now compiles with a warning:
  
   ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib, file
   is not of required architecture
  
   But when I try to import _mysql in Python 2.4.4 shell it seems to
   import the module with no errors.
  
   After that when I try to import ZMySQLDA 2.0.8 in Zope 2.10.5 I
   receive the following error:
  
   ===
   2008-02-20 11:41:52 ERROR Application Could not import Products.ZMySQLDA
   Traceback (most recent call last):
 File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
   709, in import_product
   product=__import__(pname, global_dict, global_dict, silly)
 File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/__init__.py,
   line 91, in ?
   import DA
 File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py, line 92, 
 in ?
   from db import DB
 File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py, line 89, 
 in ?
   import _mysql
 File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 7, in ?
 File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 6, in 
 __bootstrap__
   ImportError: Inappropriate file type for dynamic loading
   Traceback (most recent call last):
 File /usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py, line 56, 
 in ?
   run()
 File /usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py, line 21, 
 in run
   starter.prepare()
 File /usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py,
   line 102, in prepare
   self.startZope()
 File /usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py,
   line 278, in startZope
   Zope2.startup()
 File /usr/local/zope2.10.5/lib/python/Zope2/__init__.py, line 47, in 
 startup
   _startup()
 File /usr/local/zope2.10.5/lib/python/Zope2/App/startup.py, line
   45, in startup
   OFS.Application.import_products()
 File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
   686, in import_products
   import_product(product_dir, product_name, raise_exc=debug_mode)
 File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
   709, in import_product
   product=__import__(pname, global_dict, global_dict, silly)
 File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/__init__.py,
   line 91, in ?
   import DA
 File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py, line 92, 
 in ?
   from db import DB
 File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py, line 89, 
 in ?
   import _mysql
 File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 7, in ?
 File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 6, in 
 __bootstrap__
   ImportError: Inappropriate file type for dynamic loading
   ===
  
   Any ideas?
  
   ps: I'm posting this to zope list because I'm sure there is more
   people with this problem.
  
  
   tia
  
   Hugo
  
  
   On Feb 20, 2008 10:35 AM, Chetan Kumar [EMAIL PROTECTED] wrote:
   Hello
   I understand.
   If I could take the risk of telling-the-obvious what you need to do
   is to recompile mysql so that mysqlclient_r libraries are also
   created.
   --enable-thread-safe-client is to be used

Re: [Zope] MySQL-python-1.2.2 breaks compiling on Mac OS X 10.5 (Andy Dustman?)

2008-02-20 Thread Hugo Ramos
Hey Kumar,

I like to think that the amount of time I could make anyone here spend
looking for something is VERY well spent.
That link you sent me is just 1 of the about 50 I searched on google
before posting the problem. :-)

I can tell you now that cp, mv and ln are not the solution.
I can also tell you that there's someone posting this and the patch to
MySQL-python sourceforge site as a bug in the setup_posix.py file
(which didn't solve my problem)

Finally I can also tell you that after compiling MySQL 5.0.51a from
source my /usr/local/mysql/lib and /usr/local/mysql/lib/mysql look
like this:

$ dir /usr/local/mysql/lib/
total 0
drwxr-xr-x   3 root  wheel  102 Feb 20 01:55 .
drwxr-xr-x  11 root  wheel  374 Feb 20 01:56 ..
drwxr-xr-x  14 root  wheel  476 Feb 20 01:55 mysql

$ dir /usr/local/mysql/lib/mysql/
total 3616
drwxr-xr-x  14 root  wheel 476 Feb 20 01:55 .
drwxr-xr-x   3 root  wheel 102 Feb 20 01:55 ..
-rw-r--r--   1 root  wheel   12168 Feb 20 01:55 libdbug.a
-rw-r--r--   1 root  wheel   40048 Feb 20 01:55 libheap.a
-rw-r--r--   1 root  wheel  351896 Feb 20 01:55 libmyisam.a
-rw-r--r--   1 root  wheel   21128 Feb 20 01:55 libmyisammrg.a
-rwxr-xr-x   1 root  wheel  375120 Feb 20 01:55 libmysqlclient.15.0.0.dylib
lrwxr-xr-x   1 root  wheel  27 Feb 20 01:55
libmysqlclient.15.dylib - libmysqlclient.15.0.0.dylib
-rw-r--r--   1 root  wheel  492440 Feb 20 01:55 libmysqlclient.a
lrwxr-xr-x   1 root  wheel  27 Feb 20 01:55 libmysqlclient.dylib
- libmysqlclient.15.0.0.dylib
-rwxr-xr-x   1 root  wheel 877 Feb 20 01:55 libmysqlclient.la
-rw-r--r--   1 root  wheel  262088 Feb 20 01:55 libmystrings.a
-rw-r--r--   1 root  wheel  262940 Feb 20 01:55 libmysys.a
-rw-r--r--   1 root  wheel5848 Feb 20 01:55 libvio.a

I run out of ideas now... after 3 days searching and testing... HELP
would be much appreciated.

Thanks guys


On Feb 20, 2008 3:08 AM, Chetan Kumar [EMAIL PROTECTED] wrote:
 Discussion and solution here
 http://forums.mysql.com/read.php?50,175059,180049
 Cheers!!!
 Chetan




-- 
Hugo Ramos - [EMAIL PROTECTED]
IT Project Manager
___
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] MySQL-python-1.2.2 breaks compiling on Mac OS X 10.5 (Andy Dustman?)

2008-02-20 Thread Hugo Ramos
Hello Chetan,

Well thank you very much! I must be very tired to forget to compile
MySQL without --enable-thread-safe-client !!!
It seems that MySQL-python now compiles with a warning:

ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib, file
is not of required architecture

But when I try to import _mysql in Python 2.4.4 shell it seems to
import the module with no errors.

After that when I try to import ZMySQLDA 2.0.8 in Zope 2.10.5 I
receive the following error:

===
2008-02-20 11:41:52 ERROR Application Could not import Products.ZMySQLDA
Traceback (most recent call last):
  File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
709, in import_product
product=__import__(pname, global_dict, global_dict, silly)
  File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/__init__.py,
line 91, in ?
import DA
  File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py, line 92, in ?
from db import DB
  File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py, line 89, in ?
import _mysql
  File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 7, in ?
  File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 6, in __bootstrap__
ImportError: Inappropriate file type for dynamic loading
Traceback (most recent call last):
  File /usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py, line 56, in ?
run()
  File /usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py, line 21, in run
starter.prepare()
  File /usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py,
line 102, in prepare
self.startZope()
  File /usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py,
line 278, in startZope
Zope2.startup()
  File /usr/local/zope2.10.5/lib/python/Zope2/__init__.py, line 47, in startup
_startup()
  File /usr/local/zope2.10.5/lib/python/Zope2/App/startup.py, line
45, in startup
OFS.Application.import_products()
  File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
686, in import_products
import_product(product_dir, product_name, raise_exc=debug_mode)
  File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
709, in import_product
product=__import__(pname, global_dict, global_dict, silly)
  File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/__init__.py,
line 91, in ?
import DA
  File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py, line 92, in ?
from db import DB
  File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py, line 89, in ?
import _mysql
  File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 7, in ?
  File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 6, in __bootstrap__
ImportError: Inappropriate file type for dynamic loading
===

Any ideas?

ps: I'm posting this to zope list because I'm sure there is more
people with this problem.


tia

Hugo


On Feb 20, 2008 10:35 AM, Chetan Kumar [EMAIL PROTECTED] wrote:
 Hello
 I understand.
 If I could take the risk of telling-the-obvious what you need to do
 is to recompile mysql so that mysqlclient_r libraries are also
 created.
 --enable-thread-safe-client is to be used while configuring the mysql
 installation.
 If that is done already, the LD_LIBRARY_PATH (or equivalent in your
 case) if to set appropriately so that lmysqlclient_r is available for
 linking.
 Good luck
 Chetan




-- 
Hugo Ramos - [EMAIL PROTECTED]
IT Project Manager

~~ @ ~~
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
http://otuggapoesia.blogspot.com/
http://otugga.blogspot.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] MySQL-python-1.2.2 breaks compiling on Mac OS X 10.5 (Andy Dustman?)

2008-02-20 Thread Hugo Ramos
Well,

I went googling for this error... Google gives 1 (one) answer!!! The
worst part is that it's related to django and mod_python.

I guess nobody solved this yet... I'll have to go back to OS X 10.4 (Tiger).

omg...


Thanks
Hugo


On Feb 20, 2008 12:31 PM, Hugo Ramos [EMAIL PROTECTED] wrote:
 Hello Chetan,

 Well thank you very much! I must be very tired to forget to compile
 MySQL without --enable-thread-safe-client !!!
 It seems that MySQL-python now compiles with a warning:

 ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib, file
 is not of required architecture

 But when I try to import _mysql in Python 2.4.4 shell it seems to
 import the module with no errors.

 After that when I try to import ZMySQLDA 2.0.8 in Zope 2.10.5 I
 receive the following error:

 ===
 2008-02-20 11:41:52 ERROR Application Could not import Products.ZMySQLDA
 Traceback (most recent call last):
   File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
 709, in import_product
 product=__import__(pname, global_dict, global_dict, silly)
   File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/__init__.py,
 line 91, in ?
 import DA
   File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py, line 92, in 
 ?
 from db import DB
   File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py, line 89, in 
 ?
 import _mysql
   File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 7, in ?
   File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 6, in __bootstrap__
 ImportError: Inappropriate file type for dynamic loading
 Traceback (most recent call last):
   File /usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py, line 56, in ?
 run()
   File /usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py, line 21, in 
 run
 starter.prepare()
   File /usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py,
 line 102, in prepare
 self.startZope()
   File /usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py,
 line 278, in startZope
 Zope2.startup()
   File /usr/local/zope2.10.5/lib/python/Zope2/__init__.py, line 47, in 
 startup
 _startup()
   File /usr/local/zope2.10.5/lib/python/Zope2/App/startup.py, line
 45, in startup
 OFS.Application.import_products()
   File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
 686, in import_products
 import_product(product_dir, product_name, raise_exc=debug_mode)
   File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
 709, in import_product
 product=__import__(pname, global_dict, global_dict, silly)
   File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/__init__.py,
 line 91, in ?
 import DA
   File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py, line 92, in 
 ?
 from db import DB
   File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py, line 89, in 
 ?
 import _mysql
   File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 7, in ?
   File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 6, in __bootstrap__
 ImportError: Inappropriate file type for dynamic loading
 ===

 Any ideas?

 ps: I'm posting this to zope list because I'm sure there is more
 people with this problem.


 tia

 Hugo



 On Feb 20, 2008 10:35 AM, Chetan Kumar [EMAIL PROTECTED] wrote:
  Hello
  I understand.
  If I could take the risk of telling-the-obvious what you need to do
  is to recompile mysql so that mysqlclient_r libraries are also
  created.
  --enable-thread-safe-client is to be used while configuring the mysql
  installation.
  If that is done already, the LD_LIBRARY_PATH (or equivalent in your
  case) if to set appropriately so that lmysqlclient_r is available for
  linking.
  Good luck
  Chetan
 



 --
 Hugo Ramos - [EMAIL PROTECTED]
 IT Project Manager

 ~~ @ ~~
 http://www.orkut.com/Profile.aspx?uid=10082105466310142690
 http://otuggapoesia.blogspot.com/
 http://otugga.blogspot.com/




-- 
Hugo Ramos - [EMAIL PROTECTED]
IT Project Manager

~~ @ ~~
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
http://otuggapoesia.blogspot.com/
http://otugga.blogspot.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] MySQL-python-1.2.2 breaks compiling on Mac OS X 10.5 (Andy Dustman?)

2008-02-20 Thread Hugo Ramos
Where did you get that file? MySQL-Python at sourceforge?


Thanks


On Feb 20, 2008 5:28 PM, Giampiero Benvenuti
[EMAIL PROTECTED] wrote:
 I used MySQL_Python-1.2.1_p2-py2.4-macosx10.4.zip with 10.5 and It works
 just fine.

 Giampiero



 On Feb 20, 2008, at 8:52 AM, Hugo Ramos wrote:


 Well,

 I went googling for this error... Google gives 1 (one) answer!!! The
 worst part is that it's related to django and mod_python.

 I guess nobody solved this yet... I'll have to go back to OS X 10.4 (Tiger).

 omg...


 Thanks
 Hugo


 On Feb 20, 2008 12:31 PM, Hugo Ramos [EMAIL PROTECTED] wrote:
 Hello Chetan,

 Well thank you very much! I must be very tired to forget to compile
 MySQL without --enable-thread-safe-client !!!
 It seems that MySQL-python now compiles with a warning:

 ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib, file
 is not of required architecture

 But when I try to import _mysql in Python 2.4.4 shell it seems to
 import the module with no errors.

 After that when I try to import ZMySQLDA 2.0.8 in Zope 2.10.5 I
 receive the following error:

 ===
 2008-02-20 11:41:52 ERROR Application Could not import Products.ZMySQLDA
 Traceback (most recent call last):
   File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
 709, in import_product
 product=__import__(pname, global_dict, global_dict, silly)
   File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/__init__.py,
 line 91, in ?
 import DA
   File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py, line 92,
 in ?
 from db import DB
   File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py, line 89,
 in ?
 import _mysql
   File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 7, in ?
   File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 6, in __bootstrap__
 ImportError: Inappropriate file type for dynamic loading
 Traceback (most recent call last):
   File /usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py, line 56, in
 ?
 run()
   File /usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py, line 21, in
 run
 starter.prepare()
   File /usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py,
 line 102, in prepare
 self.startZope()
   File /usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py,
 line 278, in startZope
 Zope2.startup()
   File /usr/local/zope2.10.5/lib/python/Zope2/__init__.py, line 47, in
 startup
 _startup()
   File /usr/local/zope2.10.5/lib/python/Zope2/App/startup.py, line
 45, in startup
 OFS.Application.import_products()
   File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
 686, in import_products
 import_product(product_dir, product_name, raise_exc=debug_mode)
   File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
 709, in import_product
 product=__import__(pname, global_dict, global_dict, silly)
   File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/__init__.py,
 line 91, in ?
 import DA
   File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py, line 92,
 in ?
 from db import DB
   File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py, line 89,
 in ?
 import _mysql
   File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 7, in ?
   File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 6, in __bootstrap__
 ImportError: Inappropriate file type for dynamic loading
 ===

 Any ideas?

 ps: I'm posting this to zope list because I'm sure there is more
 people with this problem.


 tia

 Hugo



 On Feb 20, 2008 10:35 AM, Chetan Kumar [EMAIL PROTECTED] wrote:

 Hello

 I understand.

 If I could take the risk of telling-the-obvious what you need to do

 is to recompile mysql so that mysqlclient_r libraries are also

 created.

 --enable-thread-safe-client is to be used while configuring the mysql

 installation.

 If that is done already, the LD_LIBRARY_PATH (or equivalent in your

 case) if to set appropriately so that lmysqlclient_r is available for

 linking.

 Good luck

 Chetan





 --
 Hugo Ramos - [EMAIL PROTECTED]
 IT Project Manager

 ~~ @ ~~
 http://www.orkut.com/Profile.aspx?uid=10082105466310142690
 http://otuggapoesia.blogspot.com/
 http://otugga.blogspot.com/




 --
 Hugo Ramos - [EMAIL PROTECTED]
 IT Project Manager

 ~~ @ ~~
 http://www.orkut.com/Profile.aspx?uid=10082105466310142690
 http://otuggapoesia.blogspot.com/
 http://otugga.blogspot.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 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

Re: [Zope] MySQL-python-1.2.2 breaks compiling on Mac OS X 10.5 (Andy Dustman?)

2008-02-20 Thread Hugo Ramos
Forget it... Just found the file at:
http://pythonmac.org/packages/py24-fat/index.html


Thanks a lot!
Hugo


On Feb 20, 2008 5:57 PM, Hugo Ramos [EMAIL PROTECTED] wrote:
 Where did you get that file? MySQL-Python at sourceforge?


 Thanks


 On Feb 20, 2008 5:28 PM, Giampiero Benvenuti

 [EMAIL PROTECTED] wrote:
  I used MySQL_Python-1.2.1_p2-py2.4-macosx10.4.zip with 10.5 and It works
  just fine.
 
  Giampiero
 
 
 
  On Feb 20, 2008, at 8:52 AM, Hugo Ramos wrote:
 
 
  Well,
 
  I went googling for this error... Google gives 1 (one) answer!!! The
  worst part is that it's related to django and mod_python.
 
  I guess nobody solved this yet... I'll have to go back to OS X 10.4 (Tiger).
 
  omg...
 
 
  Thanks
  Hugo
 
 
  On Feb 20, 2008 12:31 PM, Hugo Ramos [EMAIL PROTECTED] wrote:
  Hello Chetan,
 
  Well thank you very much! I must be very tired to forget to compile
  MySQL without --enable-thread-safe-client !!!
  It seems that MySQL-python now compiles with a warning:
 
  ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib, file
  is not of required architecture
 
  But when I try to import _mysql in Python 2.4.4 shell it seems to
  import the module with no errors.
 
  After that when I try to import ZMySQLDA 2.0.8 in Zope 2.10.5 I
  receive the following error:
 
  ===
  2008-02-20 11:41:52 ERROR Application Could not import Products.ZMySQLDA
  Traceback (most recent call last):
File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
  709, in import_product
  product=__import__(pname, global_dict, global_dict, silly)
File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/__init__.py,
  line 91, in ?
  import DA
File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py, line 92,
  in ?
  from db import DB
File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py, line 89,
  in ?
  import _mysql
File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 7, in ?
File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 6, in __bootstrap__
  ImportError: Inappropriate file type for dynamic loading
  Traceback (most recent call last):
File /usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py, line 56, in
  ?
  run()
File /usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py, line 21, in
  run
  starter.prepare()
File /usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py,
  line 102, in prepare
  self.startZope()
File /usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py,
  line 278, in startZope
  Zope2.startup()
File /usr/local/zope2.10.5/lib/python/Zope2/__init__.py, line 47, in
  startup
  _startup()
File /usr/local/zope2.10.5/lib/python/Zope2/App/startup.py, line
  45, in startup
  OFS.Application.import_products()
File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
  686, in import_products
  import_product(product_dir, product_name, raise_exc=debug_mode)
File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
  709, in import_product
  product=__import__(pname, global_dict, global_dict, silly)
File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/__init__.py,
  line 91, in ?
  import DA
File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py, line 92,
  in ?
  from db import DB
File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py, line 89,
  in ?
  import _mysql
File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 7, in ?
File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 6, in __bootstrap__
  ImportError: Inappropriate file type for dynamic loading
  ===
 
  Any ideas?
 
  ps: I'm posting this to zope list because I'm sure there is more
  people with this problem.
 
 
  tia
 
  Hugo
 
 
 
  On Feb 20, 2008 10:35 AM, Chetan Kumar [EMAIL PROTECTED] wrote:
 
  Hello
 
  I understand.
 
  If I could take the risk of telling-the-obvious what you need to do
 
  is to recompile mysql so that mysqlclient_r libraries are also
 
  created.
 
  --enable-thread-safe-client is to be used while configuring the mysql
 
  installation.
 
  If that is done already, the LD_LIBRARY_PATH (or equivalent in your
 
  case) if to set appropriately so that lmysqlclient_r is available for
 
  linking.
 
  Good luck
 
  Chetan
 
 
 
 
 
  --
  Hugo Ramos - [EMAIL PROTECTED]
  IT Project Manager
 
  ~~ @ ~~
  http://www.orkut.com/Profile.aspx?uid=10082105466310142690
  http://otuggapoesia.blogspot.com/
  http://otugga.blogspot.com/
 
 
 
 
  --
  Hugo Ramos - [EMAIL PROTECTED]
  IT Project Manager
 
  ~~ @ ~~
  http://www.orkut.com/Profile.aspx?uid=10082105466310142690
  http://otuggapoesia.blogspot.com/
  http://otugga.blogspot.com/
  ___
  Zope maillist  -  Zope@zope.org
  http://mail.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists

Re: [Zope] MySQL-python-1.2.2 breaks compiling on Mac OS X 10.5 (Andy Dustman?)

2008-02-20 Thread Hugo Ramos
Man...

I should buy you a drink at Lisbon when you decide to come here!!! :-)
The binary package works fine now!

I just wish someone would answer about the compilation warning and
import error in Zope.


Thank you very much
Really appreciated

Hugo


On Wed, Feb 20, 2008 at 8:47 PM, Giampiero Benvenuti
[EMAIL PROTECTED] wrote:
 does it work?



  On Feb 20, 2008, at 10:07 AM, Hugo Ramos wrote:

   Forget it... Just found the file at:
   http://pythonmac.org/packages/py24-fat/index.html
  
  
   Thanks a lot!
   Hugo
  
  
   On Feb 20, 2008 5:57 PM, Hugo Ramos [EMAIL PROTECTED] wrote:
   Where did you get that file? MySQL-Python at sourceforge?
  
  
   Thanks
  
  
   On Feb 20, 2008 5:28 PM, Giampiero Benvenuti
  
   [EMAIL PROTECTED] wrote:
   I used MySQL_Python-1.2.1_p2-py2.4-macosx10.4.zip with 10.5 and It
   works
   just fine.
  
   Giampiero
  
  
  
   On Feb 20, 2008, at 8:52 AM, Hugo Ramos wrote:
  
  
   Well,
  
   I went googling for this error... Google gives 1 (one) answer!!! The
   worst part is that it's related to django and mod_python.
  
   I guess nobody solved this yet... I'll have to go back to OS X
   10.4 (Tiger).
  
   omg...
  
  
   Thanks
   Hugo
  
  
   On Feb 20, 2008 12:31 PM, Hugo Ramos [EMAIL PROTECTED] wrote:
   Hello Chetan,
  
   Well thank you very much! I must be very tired to forget to compile
   MySQL without --enable-thread-safe-client !!!
   It seems that MySQL-python now compiles with a warning:
  
   ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib,
   file
   is not of required architecture
  
   But when I try to import _mysql in Python 2.4.4 shell it seems to
   import the module with no errors.
  
   After that when I try to import ZMySQLDA 2.0.8 in Zope 2.10.5 I
   receive the following error:
  
   ===
   2008-02-20 11:41:52 ERROR Application Could not import
   Products.ZMySQLDA
   Traceback (most recent call last):
File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
   709, in import_product
  product=__import__(pname, global_dict, global_dict, silly)
File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/
   __init__.py,
   line 91, in ?
  import DA
File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py,
   line 92,
   in ?
  from db import DB
File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py,
   line 89,
   in ?
  import _mysql
File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 7, in ?
File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 6, in
   __bootstrap__
   ImportError: Inappropriate file type for dynamic loading
   Traceback (most recent call last):
File /usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py,
   line 56, in
   ?
  run()
File /usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py,
   line 21, in
   run
  starter.prepare()
File /usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py,
   line 102, in prepare
  self.startZope()
File /usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py,
   line 278, in startZope
  Zope2.startup()
File /usr/local/zope2.10.5/lib/python/Zope2/__init__.py, line
   47, in
   startup
  _startup()
File /usr/local/zope2.10.5/lib/python/Zope2/App/startup.py, line
   45, in startup
  OFS.Application.import_products()
File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
   686, in import_products
  import_product(product_dir, product_name, raise_exc=debug_mode)
File /usr/local/zope2.10.5/lib/python/OFS/Application.py, line
   709, in import_product
  product=__import__(pname, global_dict, global_dict, silly)
File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/
   __init__.py,
   line 91, in ?
  import DA
File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py,
   line 92,
   in ?
  from db import DB
File /usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py,
   line 89,
   in ?
  import _mysql
File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 7, in ?
File build/bdist.macosx-10.3-fat/egg/_mysql.py, line 6, in
   __bootstrap__
   ImportError: Inappropriate file type for dynamic loading
   ===
  
   Any ideas?
  
   ps: I'm posting this to zope list because I'm sure there is more
   people with this problem.
  
  
   tia
  
   Hugo
  
  
  
   On Feb 20, 2008 10:35 AM, Chetan Kumar [EMAIL PROTECTED]
   wrote:
  
   Hello
  
   I understand.
  
   If I could take the risk of telling-the-obvious what you need to
   do
  
   is to recompile mysql so that mysqlclient_r libraries are also
  
   created.
  
   --enable-thread-safe-client is to be used while configuring the
   mysql
  
   installation.
  
   If that is done already, the LD_LIBRARY_PATH (or equivalent in your
  
   case) if to set appropriately so that lmysqlclient_r is available
   for
  
   linking.
  
   Good luck
  
   Chetan
  
  
  
  
  
   --
   Hugo Ramos - [EMAIL PROTECTED

[Zope] MySQL-python-1.2.2 breaks compiling on Mac OS X 10.5 (Andy Dustman?)

2008-02-19 Thread Hugo Ramos
Yellow ppl,

I'm having a problem I didn't have in OS X 10.4 (tiger)...

When compiling MySQL-python-1.2.2 on OS X 10.5 (leopard) I get a very
annoying error I'm not being able to solve.
I've tried moving, copying and linking libraries around but nothing
seems to work.
Anyone seen this before? Andy? :-)

Thanks

=
- Mac OS X 10.5.2 (intel)
- MySQL 5.0.51a (compiled from source)
- Python 2.4.4
- MySQL-python-1.2.2
=
$ python setup.py build
running build
running build_py
copying MySQLdb/release.py - build/lib.macosx-10.3-fat-2.4/MySQLdb
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.3-fat-2.4
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info=(1,2,2,'final',0)
-D__version__=1.2.2 -I/usr/local/mysql/include/mysql
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c
_mysql.c -o build/temp.macosx-10.3-fat-2.4/_mysql.o
gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.4/_mysql.o
-L/usr/local/mysql/lib/mysql -lmysqlclient_r -lz -lm -o
build/lib.macosx-10.3-fat-2.4/_mysql.so
ld: library not found for -lmysqlclient_r
collect2: ld returned 1 exit status
ld: library not found for -lmysqlclient_r
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccR04Uyn.out (No such file or
directory)
error: command 'gcc' failed with exit status 1
=


-- 
Hugo Ramos - [EMAIL PROTECTED]
IT Project Manager
___
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] Mac OS X Server StartupItem for Zope

2007-06-28 Thread Hugo Ramos

These worked for me:

cat /Library/StartupItems/Zope/Zope

#!/bin/sh

##
# Zope Web Application Server
##

. /etc/rc.common

StartService ()
{
   if [ ${ZOPESERVER:=-NO-} = -YES- ]; then
   ConsoleMessage Starting Zope Application Server
   /www/Zope-2.10.3/inst1/bin/zopectl start
   fi
}

StopService ()
{
   ConsoleMessage Stopping Zope Application Server
   /www/Zope-2.10.3/inst1/bin/zopectl stop
}

RestartService ()
{
   if [ ${ZOPESERVER:=-NO-} = -YES- ]; then
   ConsoleMessage Restarting Zope Application Server
   /www/Zope-2.10.3/inst1/bin/zopectl restart
   fi
}

RunService $1


cat /Library/StartupItems/Zope/StartupParameters.plist

?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd;
plist version=1.0
dict
   keyDescription/key
   stringZope 2.10.3 Final/string
   keyOrderPreference/key
   stringNone/string
   keyProvides/key
   array
   stringWeb Application Server/string
   /array
   keyUses/key
   array
   stringDisks/string
   stringNFS/string
   stringNetworkServices/string
   /array
   /dict
/plist


cat /etc/hostconfig

ZOPESERVER=-YES-


C U
Hugo


On 6/28/07, Tom Von Lahndorff [EMAIL PROTECTED] wrote:


I've used Automator to create an app that I have as a startup item
which restarts Zope on reboot. You could also use iCal for scheduling.

In Automator choose Automator under Library and then Run Shell
Script and type in your script, save that as an Application then add
it to your startup items.


On Jun 28, 2007, at 5:09 PM, cristopher pierson ewing wrote:

 Hello,

 I'm trying to get a startup item set up under OS X Server 10.4 on
 an Intel XServe box.  I'd like not to have to manually restart Zope
 every time a software update forces me to restart the machine.
 I've gotten the following written up, but it failed to run for some
 unspecified reason.

 Here's the plist:

 {
   Description = Zope Application Server;
   Provides= (Application Server);
   Uses= (Disks, NFS);
 }

 And the startup script:

 #!/bin/sh

 ##
 # Zope Application Server
 ##

 . /etc/rc.common

 ZOPE_APP_BASE=/path/to/zope/instances; export ZOPE_APP_BASE

 StartService ()
 {
 ConsoleMessage Starting Zope Application Server
 ${ZOPE_APP_BASE}/mysite1/zopectl start
 ${ZOPE_APP_BASE}/mysite2/zopectl start
 }

 StopService ()
 {
 ConsoleMessage Stopping Zope Application Server
 ${ZOPE_APP_BASE}/mysite1/zopectl stop
 ${ZOPE_APP_BASE}/mysite2/zopectl stop
 }

 RestartService ()
 {
 ConsoleMessage Stopping Zope Application Server
 ${ZOPE_APP_BASE}/mysite1/zopectl restart
 ${ZOPE_APP_BASE}/mysite2/zopectl restart
 }

 I have multiple zope instances running, and need to start them all,
 and this is my attempt, but it doesn't work.

 Anyone out there have a successful StartupItem script that I could
 model mine after?  Alternatively, anyone have any debugging
 experience on StartupItems and could point me at how to figure out
 more than 'it failed' (which is all the system log tells me)?

 thanks in advance for any advice you all might have!

 Cris

 
 Cris Ewing
 CME and Telehealth Web Services
 Department of Radiology Web Services
 University of Washington
 School of Medicine
 Work Phone: (206) 685-9116
 Home Phone: (206) 365-3413
 E-mail: [EMAIL PROTECTED]
 ***


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




--
Hugo Ramos - [EMAIL PROTECTED]
IT Project Manager

~~ @ ~~
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
http://otuggapoesia.blogspot.com/
http://otugga.blogspot.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] Urgent Help Required......

2007-01-14 Thread Hugo Ramos

Hi Reena,

Well I was assuming you used Zope before... Well...
After extracting the product to Products folder under Zope root you
should restart zope service and then open your browser to
http://localhost:port/manage

Then you have to create your products object inside zope using that
management interface

Then you have to point your browser to http://localhost:port/objectname

But if you're really new to Zope you should reald:
http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/

This should give you a good start! :-)


CU
Hugo



On 1/14/07, Reena Karthikeyan [EMAIL PROTECTED] wrote:

Hello Hugo,


Thanks for ur imm response.

I did just that. But I am not sure Y it doesnt still show up.

Tell me if I am running Zope correct. All I do is run the instance from teh
start menu and then open the application from the link (or should it come up
by itself). How do I exit from the application

I extracted all the files in to a folder called products  available at Zope.
I then again restarted zope and checked under the products under control
panel. Is it right???

Am I missing something

Thanks,
Reena





On 1/14/07, Hugo Ramos [EMAIL PROTECTED] wrote:
 Hi Reena,

 All you have to do is move the folder with all those files to a folder
 named Products somewhere inside your zope instance. Then restart zope.


 CU
 Hugo



 On 1/14/07, Reena Karthikeyan [EMAIL PROTECTED] wrote:
 
 
  Dear All,
 
 
  I am a new user of Zope. I am sure, all of you all are masters at using
  Zope. I am not sure if I am writing my query to the right place.
However,
  please forgive me if I am doing something wrong.
 
  I work as a software test engineer in the middle east and was looking
for a
  good bug tracking tool and that is when I happened to find this site. I
  found Zope to be very useful and now my next( Most important) step is to
  start using the Issue Tracker tool. However, I am unable do so. The
reason
  being that I do not exactly know what to do.
 
 
 
  I have installed Zope 2.9.6 from the link below:
 
   http://www.zope.org/Products/Zope/2.9.6
 
 
 
  and have downloaded issuetracker from :
 
http://www.issuetrackerproduct.com/Download#IssueTrackerProduct
 
 
 
  When I unzip issue tracker all I see is a bunch of gif files, dtml
files, py
  and zpt files. I have no idea what to do next. Please help me out to use
  this tool at the earliest. Also I would really appreciate it if you
could
  provide me with any kind of documentation available to carry out the
same.
 
 
 
  Thanks and Regards,
 
  Reena Diju
  ___
  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 )
 
 
 


 --
 Hugo Ramos - [EMAIL PROTECTED]
 IT Consultant

 ~~ @ ~~

http://www.orkut.com/Profile.aspx?uid=10082105466310142690
 http://otuggapoesia.blogspot.com/
 http://otugga.blogspot.com/






--
Hugo Ramos - [EMAIL PROTECTED]
IT Consultant

~~ @ ~~
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
http://otuggapoesia.blogspot.com/
http://otugga.blogspot.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] Urgent Help Required......

2007-01-13 Thread Hugo Ramos

Hi Reena,

All you have to do is move the folder with all those files to a folder
named Products somewhere inside your zope instance. Then restart zope.


CU
Hugo



On 1/14/07, Reena Karthikeyan [EMAIL PROTECTED] wrote:



Dear All,


I am a new user of Zope. I am sure, all of you all are masters at using
Zope. I am not sure if I am writing my query to the right place. However,
please forgive me if I am doing something wrong.

I work as a software test engineer in the middle east and was looking for a
good bug tracking tool and that is when I happened to find this site. I
found Zope to be very useful and now my next( Most important) step is to
start using the Issue Tracker tool. However, I am unable do so. The reason
being that I do not exactly know what to do.



I have installed Zope 2.9.6 from the link below:

 http://www.zope.org/Products/Zope/2.9.6



and have downloaded issuetracker from :
http://www.issuetrackerproduct.com/Download#IssueTrackerProduct



When I unzip issue tracker all I see is a bunch of gif files, dtml files, py
and zpt files. I have no idea what to do next. Please help me out to use
this tool at the earliest. Also I would really appreciate it if you could
provide me with any kind of documentation available to carry out the same.



Thanks and Regards,

Reena Diju
___
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 )






--
Hugo Ramos - [EMAIL PROTECTED]
IT Consultant

~~ @ ~~
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
http://otuggapoesia.blogspot.com/
http://otugga.blogspot.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] Re: Zope + Apache on Quad Debian machine

2006-03-31 Thread Hugo Ramos
Well... I just followed some advices ppl gave me in the mailing list
and also a feeling I had about using process affinity.

I used taskset when starting Zope + Apache like this:
cpu0: all other processes
cpu1: 10 Apache (mod_ssl,mod_rewrite,mod_proxy)
cpu2: 10 Apache (mod_ssl,mod_rewrite,mod_proxy)
cpu3: Zope

I also fine tunned Python check interval to the specific server using stones.py

I've created a nice caching policy at Zope level and also at Apache level.

Other stuff I usually did before already like regular ZODB packs and so on...

After all this I got 64 requests/sec on ab. Before it was 5 or 6 requests/sec


Cheers


On 3/31/06, Anton Stonor [EMAIL PROTECTED] wrote:




 Hugo Ramos wrote:
  Thank you all !! (very insane multiple exclamation marks)
 
  I've been trying different scenarios and Zope performance increased 10
  to 11 times faster...

 Any chance you could share what you actually did to accomplish this?

 /Aton





--
Hugo Ramos - [EMAIL PROTECTED]
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
http://otugga.blogspot.com/
http://otuggapoesia.blogspot.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: Give it a rest + answers. (Re: [Zope] Re: Zope + Apache on Quad Debian machine)

2006-03-23 Thread Hugo Ramos
Maybe I just misspelled the word affinity and wrote it with just 1 f
afinity...
Hey Chris.. Cheer up dude! Try not be this hard to people that just
want to learn a bit more... Specially because back in 2000 I had you
as a Zope icon in Europe.

I'm working in Brazil now... The entire Brazilian Federal Government
decided to move into Open Source.. More specifically Linux+Zope+Plone.
Here I'm learning something called respect for others. The rest of the
world has a lot to learn from Brazilian people about social relations.
Something I didn't even taste while living in England...

Anyway... There's a lot of jobs for good professionals like you!
Salary is much more than the average Brazilian makes... Maybe this
country could be good for you! :-)


Cheers
Hugo



On 3/23/06, Chris Withers [EMAIL PROTECTED] wrote:
 Hugo Ramos wrote:
  I don't know. What I do know is that I'm not a newbie AND I did my
  homework (google+other sources) before coming here!

 Then how come you managed to miss Paul Browning and Matt Hamilton's
 extensive documentation of the subject?

 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: Give it a rest + answers. (Re: [Zope] Re: Zope + Apache on Quad Debian machine)

2006-03-22 Thread Hugo Ramos
Many things were said here... Lots of Kb's spent going around the world...
The main question remained unexplained!

Maybe Chris didn't know the answer and just directed this thread to
another direction where he could be much more exposed as the
zope@zope.org father???

I don't know. What I do know is that I'm not a newbie AND I did my
homework (google+other sources) before coming here!
Maybe I'm a newbie regarding the use of Zope on top of 4 CPU's but
then again... Everybody is a bit newbie to something on this Earth!

I got to know Chris while I was living in London (working with Zope)
and he seemed a very nice guy having a pint of beer in front of him...
But I also know him from this mailing list... So...

When it comes to Chris answers I just ignore 80% of what he says and
try to learn the other 20% (the knowledge itself).
Having said this... Cheers!

Hugo



On 3/22/06, Chris Withers [EMAIL PROTECTED] wrote:
 Dario Lopez-Kästen wrote:
  Unfortunaltey, that is the ways things work, and I think we all have to
  prepare to be nice to those newbies too.

 I think we have a right to expect those newbies to be nice back ;-)

  Generally speaking, with the growing poularity of Zope-solutions, where
  Plone and CPS being popular solutions more or less hide the technology
  behind, we get a bunch of people that do not necessarily care about the
  technology behind plone/cps, they just wnat things to work.

 If that's the case, they should either be prepared to pay someone.

  Also, especially having the marketing zope discussions happening on
  other lists, we need to come to terms with the fact that zope does not
  exist in isolation from it's environment. Questions on the general Zope
  list about issues and successes in deploying Zope, Zope performance
  *ARE* legitimate questions on the list.

 Yes, but when you point out more helpful forums to people and they just
 whine back, they deserve all the abuse they get, I'm afraid...

  So, questions and issues about threaded Pytohn apps are very likely  to
  be related to Zope, and shoudl not be dismissed ad-hoc-ly, in spite of
  the answer being google is your friend: zope+multi+cpu

 Not sure I agree. If people are expecting free help, they should at
 least have the courtesy to do the ground work.

  http://www.zope.org/Members/glpb/solaris/report_ps
 
  Having chatted with both the author and the researcher of that paper,
  I don't remember the results being as clear-cut as you imply ;-)
 
  having experienced this first hand, before the paper arrived (and it did
  help me find the solution), I think I disagree :-)

 I think we can agree that this isn't consistent for everyone, which
 kindof proves the point that other options might be best explored first ;-)

  I guess he was under the wrong impression that the zope-list was a
  friendly and safe place to ask questions and get community support :)

 For the vast majority of people, it is. If you're rude and lazy, then
 maybe it shouldn't be ;-)

  Checkov (or someone) said something along the lines of good table
  manners is not to not spill sauce on the table, but to not notice when
  someone else does.

 Visiting someone's house without an invitation and throwing sauce in
 their face is not something I think covered by that phrase...

 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 )



--
Hugo Ramos - [EMAIL PROTECTED]
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
___
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 + Apache on Quad Debian machine

2006-03-22 Thread Hugo Ramos
Thanks Kevin,

It's a very good architecture option. I'm afraid a bit too late to
test.. I'm already in production with the new architecture and CPU
affinity. It's running smoothly though.. :-)

Regards
Hugo



On 3/22/06, ksmith99 [EMAIL PROTECTED] wrote:

 Hi Hugo,

 I've got a similar setup, Compaq DL580 on a Quad Xeon with 3gb of ram on
 Debian.
 To overcome the GIL and avoid dealing with CPU affiinity and to optimize
 server utilization, I started using Xen virtualization to create multiple
 virtual servers. It's open source and works great.

 Check out http://www.cl.cam.ac.uk/Research/SRG/netos/xen/ or
 http://www.xensource.com. For performance see
 http://www.cl.cam.ac.uk/Research/SRG/netos/xen/performance.html

 This tutorial worked for me:
 http://www.debian-administration.org/articles/320 I also recommend
 installing xen-tools http://www.steve.org.uk/Software/xen-tools/

 It's very easy to create new virtual servers:
 xen-create-image --host=apache
 xen-create-image --host=zclient1
 xen-create-image --host=zclient2
 xen-create-image --host=zeo

 To create and attach to a virtual server, just do xm create zclient2.cfg
 -c log in and install python, Zope and whatever else you need.

 So instead of running 1 plone instance at 22pps, you can have serveral plone
 instances running at 22pps each and no GIL problem.

 HTH,

 Kevin Smith








 --
 View this message in context: 
 http://www.nabble.com/Zope-%2B-Apache-on-Quad-Debian-machine-t1287183.html#a3540420
 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 )



--
Hugo Ramos - [EMAIL PROTECTED]
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
http://otugga.blogspot.com/
http://otuggapoesia.blogspot.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] Zope + Apache on Quad Debian machine

2006-03-16 Thread Hugo Ramos
Thank you all !! (very insane multiple exclamation marks)

I've been trying different scenarios and Zope performance increased 10
to 11 times faster...


Cheers
Hugo




On 3/16/06, Stefan H. Holek [EMAIL PROTECTED] wrote:
 a) Your system may be I/O bound - not CPU bound - so you will never
 see the CPU max out because the limiting factors are memory and disk/
 network access.

 b) Make sure to tune Python's checkinterval. While you should
 *always* do that, it is especially important on multi-processor/multi-
 core hardware. The rule of thumb is to run the pystone benchmark,
 divide the pystones your machine benchmarks at by 50, and put the
 result into etc/zope.conf.

 e.g:
 python-check-interval 1000

 Once you get the checkinterval right, playing with processor affinity
 becomes a pointless exercise, in my experience.

 c) Always use profiling tools for performance analysis. Guessing
 rarely leads to effective optimizations. ZopeProfiler and PTProfiler
 come to mind.

 HTH,
 Stefan


 On 15. Mär 2006, at 21:45, Hugo Ramos wrote:

  Yellow,
 
  I'm using Zope+Apache on a 4 xeon's/4GB ram machine running Debian.
  I've noticed that the CPU's never go beyond 30% top occupation... but
  on rush hours the site takes too long to load...
 
  I've been reading about process affinity and how it could speed up
  everything by making zope run on 1 CPU, Apache on another and so on...
 
  Has any1 tried this before? Can you point me to some documentation?
  What's your experience? is it true that not doing this the 4 cpu's
  will not be 100% used?

 --
 Anything that happens, happens.  --Douglas Adams





--
Hugo Ramos - [EMAIL PROTECTED]
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
http://otugga.blogspot.com/
http://otuggapoesia.blogspot.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] Zope + Apache on Quad Debian machine

2006-03-15 Thread Hugo Ramos
Yellow,

I'm using Zope+Apache on a 4 xeon's/4GB ram machine running Debian.
I've noticed that the CPU's never go beyond 30% top occupation... but
on rush hours the site takes too long to load...

I've been reading about process affinity and how it could speed up
everything by making zope run on 1 CPU, Apache on another and so on...

Has any1 tried this before? Can you point me to some documentation?
What's your experience? is it true that not doing this the 4 cpu's
will not be 100% used?


Cheers
--
Hugo Ramos - [EMAIL PROTECTED]
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
___
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 + Apache on Quad Debian machine

2006-03-15 Thread Hugo Ramos
Yes... But I'm looking for more specific answers about how to create
the affinity between 1 of the zope processes and the CPU n.2, for
example...
How to make that a permanent choice?

Cheers
Hugo



On 3/15/06, Max M [EMAIL PROTECTED] wrote:
 Hugo Ramos wrote:
  Yellow,
 
  I'm using Zope+Apache on a 4 xeon's/4GB ram machine running Debian.
  I've noticed that the CPU's never go beyond 30% top occupation... but
  on rush hours the site takes too long to load...
 
  I've been reading about process affinity and how it could speed up
  everything by making zope run on 1 CPU, Apache on another and so on...
 
  Has any1 tried this before? Can you point me to some documentation?
  What's your experience? is it true that not doing this the 4 cpu's
  will not be 100% used?

 You can set up zope with zeo and then assign 3 zeo clients on different
 processors that shares the zeo server.

 That should get you a lot of the way.


 --

 hilsen/regards Max M, Denmark

 http://www.mxm.dk/
 IT's Mad Science

 Phone:  +45 66 11 84 94
 Mobile: +45 29 93 42 96

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



--
Hugo Ramos - [EMAIL PROTECTED]
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
http://otugga.blogspot.com/
http://otuggapoesia.blogspot.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: Zope + Apache on Quad Debian machine

2006-03-15 Thread Hugo Ramos
Has any1 tried this before? Can you point me to some documentation?
What's your experience? is it true that not doing this the 4 cpu's
will not be 100% used?

I think these questions are very ZOPE RELATED since I asked them in a
Zope mailing list don't you think?
I'm asking about Zope user/administrator experience related to Zope
use on a quad machine!!!

Of course if some1 tells me how to do it using OS related stuff this
is STILL Zope related!

Hey... but thank you Jens for spending all that time writing an email
that doesn't help any1 at all...!!!

Cheers
Hugo



On 3/15/06, Jens Vagelpohl [EMAIL PROTECTED] wrote:

 On 15 Mar 2006, at 21:11, Hugo Ramos wrote:

  Yes... But I'm looking for more specific answers about how to create
  the affinity between 1 of the zope processes and the CPU n.2, for
  example...
  How to make that a permanent choice?

 This question has nothing to do with Zope. You will need to find out
 from your operating system documentation or from a forum that deals
 with it.

 jens



--
Hugo Ramos - [EMAIL PROTECTED]
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
___
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] Error when starting Zope 2.9.0

2006-02-01 Thread Hugo Ramos
Yellow ppl,

I've instaled Zope 2.9.0 on Fedora 4 using Python 2.4.2 compiled from
source. Everything ok.
I was trying to do exactly the same (Zope 2.9.0 with Python 2.4.2 from
source) in Debian 3.1 and I got the following error:

===
bsbserv035:/var/zope/inst1/bin# ./runzope
Traceback (most recent call last):
  File /var/zope/lib/python/Zope2/Startup/run.py, line 56, in ?
run()
  File /var/zope/lib/python/Zope2/Startup/run.py, line 19, in run
opts = _setconfig()
  File /var/zope/lib/python/Zope2/Startup/run.py, line 48, in _setconfig
opts.realize(doc=Sorry, no option docs yet.)
  File /var/zope/lib/python/zdaemon/zdoptions.py, line 273, in realize
self.load_schema()
  File /var/zope/lib/python/zdaemon/zdoptions.py, line 321, in load_schema
self.schema = ZConfig.loadSchema(self.schemafile)
  File /var/zope/lib/python/ZConfig/loader.py, line 31, in loadSchema
return SchemaLoader().loadURL(url)
  File /var/zope/lib/python/ZConfig/loader.py, line 65, in loadURL
return self.loadResource(r)
  File /var/zope/lib/python/ZConfig/loader.py, line 159, in loadResource
schema = ZConfig.schema.parseResource(resource, self)
  File /var/zope/lib/python/ZConfig/schema.py, line 27, in parseResource
xml.sax.parse(resource.file, parser)
  File /usr/local/lib/python2.4/xml/sax/__init__.py, line 33, in parse
parser.parse(source)
  File /usr/local/lib/python2.4/xml/sax/expatreader.py, line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
  File /usr/local/lib/python2.4/xml/sax/xmlreader.py, line 123, in parse
self.feed(buffer)
  File /usr/local/lib/python2.4/xml/sax/expatreader.py, line 207, in feed
self._parser.Parse(data, isFinal)
  File /usr/local/lib/python2.4/xml/sax/expatreader.py, line 300, in
start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
  File /var/zope/lib/python/ZConfig/schema.py, line 99, in startElement
getattr(self, start_ + name)(attrs)
  File /var/zope/lib/python/ZConfig/schema.py, line 475, in start_schema
keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File /var/zope/lib/python/ZConfig/schema.py, line 201, in get_sect_typeinfo
datatype = self.get_datatype(attrs, datatype, null, base)
  File /var/zope/lib/python/ZConfig/schema.py, line 194, in get_datatype
return self._registry.get(dtname)
  File /var/zope/lib/python/ZConfig/datatypes.py, line 398, in get
t = self.search(name)
  File /var/zope/lib/python/ZConfig/datatypes.py, line 423, in search
package = __import__(n, g, g, component)
  File /var/zope/lib/python/Zope2/Startup/datatypes.py, line 21, in ?
import OFS.Uninstalled
  File /var/zope/lib/python/OFS/Uninstalled.py, line 16, in ?
import  SimpleItem, Globals, Acquisition
  File /var/zope/lib/python/OFS/SimpleItem.py, line 26, in ?
import AccessControl.Role, AccessControl.Owned, App.Common
  File /var/zope/lib/python/AccessControl/__init__.py, line 17, in ?
from Implementation import setImplementation
  File /var/zope/lib/python/AccessControl/Implementation.py, line 98, in ?
setImplementation(C)
  File /var/zope/lib/python/AccessControl/Implementation.py, line
51, in setImplementation
from AccessControl import ImplC as impl
  File /var/zope/lib/python/AccessControl/ImplC.py, line 30, in ?
from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy
ImportError: No module named ImplPython
===

Any1 solved this already???


Regards

--
Hugo Ramos - [EMAIL PROTECTED]
http://otugga.blogspot.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] Error when starting Zope 2.9.0

2006-02-01 Thread Hugo Ramos
I've used the following commands:

./configure --prefix=/var/zope --with-python=/usr/local/bin/python2.4
make
make install

cd /var/zope/bin/
./mkzopeinstance.py


Regards
Hugo



On 2/1/06, Andreas Jung [EMAIL PROTECTED] wrote:


 --On 1. Februar 2006 11:57:08 -0200 Hugo Ramos [EMAIL PROTECTED] wrote:

  Yellow ppl,
 
  I've instaled Zope 2.9.0 on Fedora 4 using Python 2.4.2 compiled from
  source. Everything ok.
  I was trying to do exactly the same (Zope 2.9.0 with Python 2.4.2 from
  source) in Debian 3.1 and I got the following error:

 Did you create an instance using make instance ?

 -aj





--
Hugo Ramos - [EMAIL PROTECTED]
http://otugga.blogspot.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] Error when starting Zope 2.9.0

2006-02-01 Thread Hugo Ramos
Any ideas???


On 2/1/06, Hugo Ramos [EMAIL PROTECTED] wrote:
 I've used the following commands:

 ./configure --prefix=/var/zope --with-python=/usr/local/bin/python2.4
 make
 make install

 cd /var/zope/bin/
 ./mkzopeinstance.py


 Regards
 Hugo



 On 2/1/06, Andreas Jung [EMAIL PROTECTED] wrote:
 
 
  --On 1. Februar 2006 11:57:08 -0200 Hugo Ramos [EMAIL PROTECTED] wrote:
 
   Yellow ppl,
  
   I've instaled Zope 2.9.0 on Fedora 4 using Python 2.4.2 compiled from
   source. Everything ok.
   I was trying to do exactly the same (Zope 2.9.0 with Python 2.4.2 from
   source) in Debian 3.1 and I got the following error:
 
  Did you create an instance using make instance ?
 
  -aj
 
 
 


 --
 Hugo Ramos - [EMAIL PROTECTED]
 http://otugga.blogspot.com/



--
Hugo Ramos - [EMAIL PROTECTED]
http://otugga.blogspot.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] Zope vs Plone: performance issues!

2006-01-24 Thread Hugo Ramos
Hi all,

I'm responsible for a big corporate intranet and corporate portal.
They were using Zope/Plone before I got here and the problems are too many.

Let's talk about performance issues... Plone is VERY SLOW responding
requests. All content is stored in ZODB objects and zcatalog is used
to search. But even if you request the intranet home only, it takes
about 10 seconds to load. The hardware is very good and lots of ram is
used in the servers.

They also have zeo + 2 zope instances running in the same machine.
I've never seen this in my life... only 3 machines running 2 zope
instances + zeo instance, separately.

Do you think Zope(logic)+MySQL(content)+Apache(HTTP server) is better
solution than Zope+Plone ???

TIA

--
Hugo Ramos - [EMAIL PROTECTED]
Senior Zope consultant
___
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 vs Plone: performance issues!

2006-01-24 Thread Hugo Ramos
Well... They were already using Zope's cache and Squid to proxy some static HTML
I guess the problem is Plone itself... Skins etc...




On 1/24/06, Sasha Vincic [EMAIL PROTECTED] wrote:
 On 1/24/06, Peter Bengtsson [EMAIL PROTECTED] wrote:
  On 1/24/06, Hugo Ramos [EMAIL PROTECTED] wrote:
   Hi all,
  
   I'm responsible for a big corporate intranet and corporate portal.
   They were using Zope/Plone before I got here and the problems are too 
   many.
  
   Let's talk about performance issues... Plone is VERY SLOW responding
  

 snip

  Yes!
  But not good enough.
  Most performance issues with Plone can be solved by caching. Don't
  underestimate it.

 Yes Plone is slow but with caching you get very good performance. I
 have boosted performance on plone sites from default 1-3req/s to
 100req/s and then it was the bandwith that was the bottleneck. The
 sites where serving both anonymous and authenticated content. I
 recommend to check out the CacheFu product and documentation in the
 collective.

 /Sasha
 Lovely Systems - www.lovelysystems.com



--
Hugo Ramos - [EMAIL PROTECTED]
http://otugga.blogspot.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] Objects access

2005-06-16 Thread Hugo Ramos
Yellow ppl,

Is there a way to know how many times an object has been accessed
during current Zope's uptime?
Something like the activity tab in /Control_Panel/Database/main but
specific to each object in ZODB.


Regards

-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] Objects access

2005-06-16 Thread Hugo Ramos
Thanks Tino,

Your answer really helped me.
Basically I want to know what objects are accessed the most so that I
can plan a cache strategy. This is also helpfull just to optimize the
code in the objects that are used intensively. Also I can delete
objects that are very old and not used anymore but in big web apps is
dificult to maintain track of every tiny object that we don't use
anymore.


Regards
Hugo



On 6/16/05, Tino Wildenhain [EMAIL PROTECTED] wrote:
 Am Donnerstag, den 16.06.2005, 11:24 +0100 schrieb Hugo Ramos:
  Yellow ppl,
 
  Is there a way to know how many times an object has been accessed
  during current Zope's uptime?
  Something like the activity tab in /Control_Panel/Database/main but
  specific to each object in ZODB.
 
 You can enable profiling (see ZMI in Control_Panel)
 (You need to create a file for the log in the filesystem,
 change config and restart zope) where you get refcounts on
 all object but it will also cause substantial slowdown.
 E.g. nothing you use in production environment.
 
 Next best be it to just analyze the logfiles, for example
 Z2.log - which gives you numbers based on URL
 (Not that in a publishing process not only the object
 on the specific URL is used but also a lot parent objects,
 user, etc.
 
 I guess it highly depends on what you really want to do.
 --
 Tino Wildenhain [EMAIL PROTECTED]
 
 


-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] MySQL timestamp issue

2005-06-06 Thread Hugo Ramos
Yellow Andy,

In fact what you've said works!
That line was missing on db.py and after I inserted it there
everything works the right way.

I guess this thread is now over. Thanks!!!


Cheers
Hugo



On 6/3/05, Andy Dustman [EMAIL PROTECTED] wrote:
 On 6/3/05, Hugo Ramos [EMAIL PROTECTED] wrote:
  Yellow,
 
  I wrote the wrong version.
  I'm using MySQL 4.0.24 + Zope 276 + mysql-python 1.0.0 + ZMySQLDA 2.0.9b3
 
 Take a look at ZMySQLDA/db.py:
 
 http://cvs.sourceforge.net/viewcvs.py/mysql-python/ZMySQLDA/lib/python/Products/ZMySQLDA/db.py?rev=1.21view=auto
 
 You may need to add a line like this to the DB class:
 
 conv[FIELD_TYPE.TIMESTAMP] = _mysql_timestamp_converter
 
 Not sure why this is missing.
 
 --
 Computer interfaces should never be made of meat.
 http://www.terrybisson.com/meat.html
 


-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] MySQL timestamp issue

2005-06-03 Thread Hugo Ramos
I already know what exactly makes Zope hang!
The problem is located at times.py that was installed by MySQL-Python
1.2.0 (MySQL-python.exe-1.2.0.win32-py2.4.zip)

==OLD==
def mysql_timestamp_converter(s):
Convert a MySQL TIMESTAMP to a Timestamp object.
s = s + 0*(14-len(s)) # padding
parts = map(int, filter(None, (s[:4],s[4:6],s[6:8],
   s[8:10],s[10:12],s[12:14])))
try: return apply(Timestamp, tuple(parts))
except: return None
==OLD==

HACKED
import DateTime

def mysql_timestamp_converter(s):
Convert a MySQL TIMESTAMP to a Timestamp object.
s = s + 0*(14-len(s)) # padding
parts = map(int, filter(None, (s[:4],s[4:6],s[6:8],
   s[8:10],s[10:12],s[12:14])))
try: return apply(DateTime.DateTime, tuple(parts))
except: return None
HACKED

Oren Goldschmidt helped me here and we just made a very nasty hack...
As you can see we imported DateTime and replaced the Timestamp inside
the try statement.

This makes Zope behave!!! But it's a nasty hack that could break other
stuff around there.

Comments???


Cheers
Hugo



On 6/3/05, Chris Withers [EMAIL PROTECTED] wrote:
 Hugo Ramos wrote:
  Could anyone explain me why this works in Zope 2.7.0 final and doesn't
  work in Zope 2.7.6 final and/or 2.8.0b1 ??
 
 If Zope is really hanging, look at DeadlockDebugger and find out where
 it's hanging...
 
 Chris
 
 --
 Simplistix - Content Management, Zope  Python Consulting
 - http://www.simplistix.co.uk
 
 


-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] MySQL timestamp issue

2005-06-03 Thread Hugo Ramos
Yellow,

I wrote the wrong version.
I'm using MySQL 4.0.24 + Zope 276 + mysql-python 1.0.0 + ZMySQLDA 2.0.9b3

This is the DTML code generating the error:
dtml-var docdataemissao fmt=%Y-%m-%d

docdataemissao is a timestamp field in a table like:
200406011023

The traceback:
Error Type: ValueError
Error Value: unsupported format character 'Y' (0x59) at index 1

[...]
Module DocumentTemplate.DT_String, line 474, in __call__ 
Module DocumentTemplate.DT_In, line 703, in renderwob 
Module DocumentTemplate.DT_Var, line 280, in render
__traceback_info__: ('docdataemissao', DateTime object for
'2005-06-01 12:34:45.00' at 19878e0, {'': 'docdataemissao', 'fmt':
'%Y-%m-%d'})

Any ideas???


Cheers
Hugo



On 6/3/05, Andy Dustman [EMAIL PROTECTED] wrote:
 On 6/3/05, Hugo Ramos [EMAIL PROTECTED] wrote:
  I already know what exactly makes Zope hang!
  The problem is located at times.py that was installed by MySQL-Python
  1.2.0 (MySQL-python.exe-1.2.0.win32-py2.4.zip)
 
 This is a package for Python-2.4. Are you using Python-2.4 with
 Zope-2.7? If you are, the line of people prepared to yell at you is
 long and distinquished.
 
 What version of ZMySQLDA are you using? Only 2.0.9b3 will work
 properly with MySQLdb-1.2.0.
 --
 Computer interfaces should never be made of meat.
 http://www.terrybisson.com/meat.html
 


-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] MySQL timestamp issue

2005-06-02 Thread Hugo Ramos
Yellow,

Could anyone explain me why this works in Zope 2.7.0 final and doesn't
work in Zope 2.7.6 final and/or 2.8.0b1 ??

dtml-var timestampvar fmt=%Y-%m-%d

also when I try this:

dtml-var _.DateTime(timestampvar) fmt=%Y-%m-%d

Zope hangs!!!

ps: timestampvar is a timestamp var comming from MySQL 4.0.24


tia
-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] DTML in Zope 2 vs Zope 3

2005-05-27 Thread Hugo Ramos
On 5/27/05, Chris Withers [EMAIL PROTECTED] wrote:
 AT? As in ArcheTypes? You ARE kidding right? I've never seen such bad
 code, and in particular, abuse of ZPT in my entire life...
 
 And DTML sux, you wanna use it, fine, that says something about you. Use
 ZClasses, Plone, AT and XUF at the same time while you're at it. Why not
 dig out LoginManager and ZPatterns too, just for good measure?
 
 Hell, why not just do us all a favour and switch to using Perl where
 you'll be s much happier, and everyone in the community will agree
 with you rather than trying to help you not shoot yourself in the foot ;-)

Is it me or are you really pissed??? :-)
At least give DTML some credit... It's what made Zope so popular in
the first days because of easy and fast learning curve!!!

Regards
Hugo

-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] DTML in Zope 2 vs Zope 3

2005-05-26 Thread Hugo Ramos
Yellow,

I think because of lazy people like me that prefer to use DTML in a
fast way than go into a deep Python level to get the job done...
I know that, eventually, one of these days I'll have to move on to
Python only but until that day comes... DTML and a little bit of
Python where needed suits me fine! :-)

Regards
Hugo


On 5/25/05, Chris Withers [EMAIL PROTECTED] wrote:
 David H wrote:
 
  I understand that DTML will be in Zope 3.  My question is, do
  namespaces and context also migrate to Zope 3? If not, could break
  existing code?
 
 I would suggest that the chances of any DTML from Zope 2 working in Zope
 3 are slim, at best ;-)
 
 Why DTML is IN Zope 3 in the first place is totally beyond me...
 
 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 )
 


-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] DTML in Zope 2 vs Zope 3

2005-05-26 Thread Hugo Ramos
Yellow,

I have the same feeling... Python should be the primary language used
in Zope but let's not just cut the support on DTML leaving thousands
out there spinning around and having to go into Python as fast as they
can because DTML is not supported anymore.
Changes take time... Getting used to Python only in Zope takes time...
and I'm not so sure the employers out there are that kind allowing
everybody to take time making the move.


Regards
Hugo


On 5/26/05, David H [EMAIL PROTECTED] wrote:
 Hugo Ramos wrote:
 
 Yellow,
 
 I think because of lazy people like me that prefer to use DTML in a
 fast way than go into a deep Python level to get the job done...
 I know that, eventually, one of these days I'll have to move on to
 Python only but until that day comes... DTML and a little bit of
 Python where needed suits me fine! :-)
 
 Regards
 Hugo
 
 
 
 Hugo,
 I figured as a dtml wiz a few years ago.  Now I can't image doing
 w/out python scripts and suddenly DTML gives me a headache.  I do think
 that DTML deserves a Hall of Fame Award but its time to move on.
 
 David
 
 
 
 


-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] How can I get context property in DTML ? (example)

2005-05-23 Thread Hugo Ramos
Yellow,

Just place an index_html object inside dir1 with this code:

dtml-var bar

Then call the following URL's:
http://yourserver/dir1/
http://yourserver/dir2/
http://yourserver/dir3/


Regards
hr


On 5/23/05, KLEIN Stphane [EMAIL PROTECTED] wrote:
 Hello,
 
 In DTML I would like to do that :
 
 I've this directory :
 
 dir1
   | dir2
   | dir3
 
 dir1 has property bar=1
 dir2 has property bar=2
 dir3 has property bar=3
 
 I would like a foo_html DTML Document file which display the property
 bar. This file is place in dir1.
 
 Exemple :
 
 When I go to dir1/foo_html = I show 1
 When I go to dir1/dir2/foo_html = I show 2
 When I go to dir1/dir3/foo_html = I show 3
 
 How can I do it ?
 
 Thanks for your help.
 -- Sthane
 
 ___
 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 )
 


-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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 )


Fwd: [Zope] How can I get context property in DTML ? (example)

2005-05-23 Thread Hugo Ramos
Sorry... Forgot to say that the index_html obect should be a DTML Method!!!

Regards
hr


-- Forwarded message --
From: Hugo Ramos [EMAIL PROTECTED]
Date: May 23, 2005 9:44 AM
Subject: Re: [Zope] How can I get context property in DTML ? (example)
To: zope@zope.org


Yellow,

Just place an index_html object inside dir1 with this code:

dtml-var bar

Then call the following URL's:
http://yourserver/dir1/
http://yourserver/dir2/
http://yourserver/dir3/


Regards
hr


On 5/23/05, KLEIN Stphane [EMAIL PROTECTED] wrote:
 Hello,

 In DTML I would like to do that :

 I've this directory :

 dir1
   | dir2
   | dir3

 dir1 has property bar=1
 dir2 has property bar=2
 dir3 has property bar=3

 I would like a foo_html DTML Document file which display the property
 bar. This file is place in dir1.

 Exemple :

 When I go to dir1/foo_html = I show 1
 When I go to dir1/dir2/foo_html = I show 2
 When I go to dir1/dir3/foo_html = I show 3

 How can I do it ?

 Thanks for your help.
 -- Sthane

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



--
Hugo Ramos - [EMAIL PROTECTED]


-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] how to accumulate data using ZPT

2005-05-20 Thread Hugo Ramos
Yellow,

What DBMS are you using??? MySQL???
If so just have a sql method do this:
==
SELECT COUNT( '*' )  AS total
FROM yourtable
==

Then call the variable total where you need it!

Regards
hr


On 5/20/05, prabuddha ray [EMAIL PROTECTED] wrote:
 I've this report wherein i've to print the column total iin last row.
 column values are from database.
 so far I'm a total loss. do i need to have cookies to store this total?
 
 plz gimme ideas.
 
 --
 Share the vision of difference with ME
 ___
 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 )
 


-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] how to accumulate data using ZPT

2005-05-20 Thread Hugo Ramos
On 5/20/05, Tino Wildenhain [EMAIL PROTECTED] wrote:
 Am Freitag, den 20.05.2005, 09:52 +0100 schrieb Hugo Ramos:
  Yellow,
 
  What DBMS are you using??? MySQL???
  If so just have a sql method do this:
  ==
  SELECT COUNT( '*' )  AS total
  FROM yourtable
  ==
 
 Are you sure about the ' '? looks strange.

It works both ways... With or without the ' ' !


  Then call the variable total where you need it!
 
  Regards
  hr
 
 
  On 5/20/05, prabuddha ray [EMAIL PROTECTED] wrote:
   I've this report wherein i've to print the column total iin last row.
   column values are from database.
   so far I'm a total loss. do i need to have cookies to store this total?
 
 simplest solution if you need the data anyway:
 a python script where you do the zsql method
 
 results=context.whateverZSQLMethod(args...)
 
 return context.yourPageTemplate(results=results,count=len(results))
 
 and use
 
 tal:content=options/count in the template where you need count.
 If its a sum you need, just work over your resultset or use a separate
 query.
 
 Easiest to work over result set (especially if the select is costy)
 
 
 results=context.whateverZSQLMethod(args...)
 
 total=0
 for item in results:
if item.value: # this handles the case of nulls
total+=item.value
 
 and use the total as argument:
 
 return context.yourPageTemplate(results=results,
 count=len(results),
 total=total)
 
 
 --
 Tino Wildenhain [EMAIL PROTECTED]
 
 


-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] dtml-sendmail with a tab

2005-05-19 Thread Hugo Ramos
Yellow,
What is an email with horizontal tabulation???

hr


On 5/19/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Selon Andreas Jung [EMAIL PROTECTED]:
 
 
 
  --On Donnerstag, 19. Mai 2005 14:48 Uhr +0200 [EMAIL PROTECTED] wrote:
 
  
   Hello,
  I want to send an e-mail with a tab. How can I do that with a
   dtml-sendmail tag?
  
 
  What is an email with a tab??
 
  -aj
 
 
 
 
 Sorry, for me a tab is an horizontal tabulation ( #9; or HT ).
 Best regards.
 Jean Tinguely
 
 
 This message was sent using IMP, the Internet Messaging Program.
 
 ___
 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 )
 


-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] zmi issues

2005-05-19 Thread Hugo Ramos
Yellow,

Once I imported a zexp file bigger than 2GB... It took a while... :-)
Be sure to turn session timeout off!!! If you session expires or the
browser has some kind of problem it will give you a timeout error...

regards
hr


On 5/19/05, Yuri [EMAIL PROTECTED] wrote:
 Hi!
 
  I'm doing an import of a large .zexp (from ZMI), and I see thay Zope is
 first loading it all in memory, than doing the work of importing it! I
 mean, isn't it a little bit *inefficient? :)
 
  Also, renaming a folder with a lot of zclasses in (40.000), takes a lot
 of time. After 10 minutes, it was still there... and this is a 2,4 Ghz
 P4 and 512 MB of Ram...
 
  Can this be fixed/improved? :)
 
  TIA!
 *
 ___
 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 )
 


-- 
Hugo Ramos - [EMAIL PROTECTED]
___
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] Quota in Zope

2000-11-24 Thread Hugo Ramos

- Original Message -
From: "Andy McKay" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 24, 2000 9:57 PM
Subject: Re: [Zope] Quota in Zope


 Ok. A disk quota of particular person? or folder? or some object? or is
Zope
 itself not fitting in a disk quota?
 If you can't give us a brief example or more helpful description than
this,
 you arent going to get much help.


Well... this is a great question!!!
That would be very useful!! A folder quota for portal like websites where
the company could serve personal webpages to the clients.

Great!


regards



=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Problems with Zope 2.2.2 and MS SQL Server

2000-11-14 Thread Hugo Ramos

- Original Message -
From: "Rik Hoekstra" [EMAIL PROTECTED]
To: "Pieter Claerhout" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, November 14, 2000 8:52 PM
Subject: Re: [Zope] Problems with Zope 2.2.2 and MS SQL Server

  I'm having some troubles connecting Zope 2.2.2 to Microsoft SQL Server.
I
 downloaded and installed the product ZODBCDA, and I was able to connect to
 the SQL Server. I was able to define the SQL methods, and when I test
them,
 everything is successful. The problem is that when I use for example the
 dtml-in tag to iterate over the results, and display them in a page, I am
 always prompted for a password, but I can enter whatever password I want,
I
 can never get through.
 
  Does anybody has an idea of what I'm doing wrong and how I can solve
it??


There was a patch for this problem. Someone posted it in this mailing list
before... search for it!


regards


=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] ZSQL is killing me...

2000-11-08 Thread Hugo Ramos

Yellow ppl,

I think everybody already had this problem...

Suppose you have a DB connection in /root/subfolder/DB_conn
then you build lots of zsql objects from that point down...
then you move the DB connection object up to the root.

result: all ZSQL's have to be changed to assume the DB_conn new position.


shouldn't the zsql's assume right away that the upper DB_conn in the root
folder is the right one??

regards


=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] OT: PythonLabs Team Moves to Digital Creations!

2000-10-28 Thread Hugo Ramos

- Original Message - 
From: "Paul Everitt" [EMAIL PROTECTED]
To: "Ross Lazarus" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, October 28, 2000 1:08 PM
Subject: Re: [Zope] OT: PythonLabs Team Moves to Digital Creations!


 
 Yes, it's been hard keeping that particular secret. :^)
 
 We'll have more to say on this -- like an official press release -- over
 the coming week.


So this was the reason for the busy November at DC...

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] dtml-tree question

2000-08-30 Thread Hugo Ramos

- Original Message - 
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Hugo Ramos" [EMAIL PROTECTED]
Sent: Wednesday, August 30, 2000 6:14 PM
Subject: Re: [Zope] dtml-tree question


 Hugo Ramos writes:
   line 566 (original source):
   s.append([id,[]])
 Chris Withers has been hit by this bug, too.
 
 Maybe, he found a patch/workaround by now.
 
 I never saw this problem, but, up to now, used the tree tag
 only in Zope 2.1.x.


I have that error all the time if I use the dtml-tree tag inside a ZClass.

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] ZMenu 0.1.0 released

2000-08-30 Thread Hugo Ramos

Yellow ppl,

ZMenu is a complete navigational system that uses a tree like display. It
allows you to dinamicly add a navigational link menus system to your site.

This ZClass based product is still in a development stage and I'dd like to
have some feedback about it... so email me about any problems or sugestions.

You can download it here (there is also a pic):
http://www.zope.org/Members/hramos/products/ZMenu

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope-dev] Re: [Zope] dtml-tree question

2000-08-29 Thread Hugo Ramos

- Original Message -
From: "Dieter Maurer" [EMAIL PROTECTED]
To: "Hugo Ramos" [EMAIL PROTECTED]
Cc: "ZOPE" [EMAIL PROTECTED]; "EUROZOPE" [EMAIL PROTECTED]
Sent: Tuesday, August 29, 2000 10:22 PM
Subject: Re: [Zope] dtml-tree question


 Hugo Ramos writes:
   Is there a way to use my own self made '+' icon in a tree tag?
   I'dd like to use my own icon only IF i want to... and not change the
python
   source to use my own icon all the time!
 The code is partially there, but incomplete and commented out.

 If you do not mind other extensions as well, I could provide
 a TreeTag patch for several extensions, including the
 icon customization.


hello Dieter,

I've tryied to hack the treetag source already... but there's some kind of
bug in it:

line 566 (original source):
s.append([id,[]])

Why is this trying to append to 's' when 's' has become a tupple somewhere
before this line???... tupples don't accept append!!

This bug is really making me crazy... because it makes an error when
clicking the + icon in a dtml-tree that I must use...



Another thing:
I hacked the source of treetag.py to accept 2 more parameters in the
dtml-tree... icon_mi and icon_pl

The hacked source is in the attach.
Changes go from line 411-427. Of course i defined the 2 new parameters as
None in the file top.

Please somebody help me... I'm running out of ideias...

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


##
# 
# Zope Public License (ZPL) Version 1.0
# -
# 
# Copyright (c) Digital Creations.  All rights reserved.
# 
# This license has been certified as Open Source(tm).
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# 
# 1. Redistributions in source code must retain the above copyright
#notice, this list of conditions, and the following disclaimer.
# 
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions, and the following disclaimer in
#the documentation and/or other materials provided with the
#distribution.
# 
# 3. Digital Creations requests that attribution be given to Zope
#in any manner possible. Zope includes a "Powered by Zope"
#button that is installed by default. While it is not a license
#violation to remove this button, it is requested that the
#attribution remain. A significant investment has been put
#into Zope, and this effort will continue if the Zope community
#continues to grow. This is one way to assure that growth.
# 
# 4. All advertising materials and documentation mentioning
#features derived from or use of this software must display
#the following acknowledgement:
# 
#  "This product includes software developed by Digital Creations
#  for use in the Z Object Publishing Environment
#  (http://www.zope.org/)."
# 
#In the event that the product being advertised includes an
#intact Zope distribution (with copyright and license included)
#then this clause is waived.
# 
# 5. Names associated with Zope or Digital Creations must not be used to
#endorse or promote products derived from this software without
#prior written permission from Digital Creations.
# 
# 6. Modified redistributions of any form whatsoever must retain
#the following acknowledgment:
# 
#  "This product includes software developed by Digital Creations
#  for use in the Z Object Publishing Environment
#  (http://www.zope.org/)."
# 
#Intact (re-)distributions of any official Zope release do not
#require an external acknowledgement.
# 
# 7. Modifications are encouraged but must be packaged separately as
#patches to official Zope releases.  Distributions that do not
#clearly separate the patches from the original work must be clearly
#labeled as unofficial distributions.  Modifications which do not
#carry the name Zope may be packaged in any form, as long as they
#conform to all of the clauses above.
# 
# 
# Disclaimer
# 
#   THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
#   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
#   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
#   PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
#   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
#   USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
#   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,

[Zope] dtml-tree question

2000-08-28 Thread Hugo Ramos

Yellow ppl,

Is there a way to use my own self made '+' icon in a tree tag?
I'dd like to use my own icon only IF i want to... and not change the python
source to use my own icon all the time!

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] review waiting for 3 days!!!

2000-08-24 Thread Hugo Ramos

Yellow ppl at DC,

Is everybody on holyday at DC? :-)
I've a some reviews waiting for 3 days now to be validated on zope.org

Maybe there's a lot more reviews waiting from other guys.

please check it

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] ZMenu 0.0.2 product

2000-08-23 Thread Hugo Ramos

Yellow ppl,

ZMenu is a complete navigational system that uses a tree like display. It
allows you to dinamicly add a navigational link menus system to your site.

This ZClass based product is still in a development stage and I'dd like to
have some feedback about it... so email me about any problems or sugestions.

You can download it here (there is also a pic):
http://www.zope.org/Members/hramos/products/ZMenu


=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] www.zopers.org is now officially an EuroZope member site!

2000-08-20 Thread Hugo Ramos

Yellow ppl,

www.zopers.org is now officially an EuroZope member site!

After some new features I decided to take the time and add the beautiful
member logo to ZopersORG.

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Z2.py DNS_IP (name resolution)

2000-08-15 Thread Hugo Ramos

Yellow ppl,

I inserted my local machine IP address in DNS_IP section of Z2.py as I used
to in version 2.1.6 (now running 2.2.1b1). This used to work for me and
instead of numbers I would get resolved names in the Z2.log.

Since I upgraded to 2.2.0 and now 2.2.1b1 I only get numbers. DNS_IP section
of Z2.py is not working properly anymore...

anyone??

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope 2.20 and SQLSession

2000-07-30 Thread Hugo Ramos

I've just sent him the RDB.py
no more probs after that... :-)

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!




- Original Message -
From: "Jorge Magalhaes" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 30, 2000 11:15 AM
Subject: [Zope] Zope 2.20 and SQLSession



 Hi
 Since i upgrade my zope 2.14 to 2.20 i can't access to my all DTML
Method's
  which use the SQLSESSION session.

 I try view these method's with superuser permissions but a have this error
message:


  Zope Error

  Zope has encountered an error while publishing this
resource.

  Unauthorized

  Sorry, a Zope error occurred.

  Traceback (innermost last):
File
/usr/local/ZopeNovo/Zope/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
File
/usr/local/ZopeNovo/Zope/lib/python/ZPublisher/Publish.py, line 187, in
publish
File
/usr/local/ZopeNovo/Zope/lib/python/ZPublisher/Publish.py, line 171, in
publish
File
/usr/local/ZopeNovo/Zope/lib/python/ZPublisher/mapply.py, line 160, in
mapply
  (Object: novasessao)
File
/usr/local/ZopeNovo/Zope/lib/python/ZPublisher/Publish.py, line 112, in
call_object
  (Object: novasessao)
File
/usr/local/ZopeNovo/Zope/lib/python/OFS/DTMLMethod.py, line 167, in __call__
  (Object: novasessao)
File
/usr/local/ZopeNovo/Zope/lib/python/DocumentTemplate/DT_String.py, line 502,
in __call__
  (Object: novasessao)
File
/usr/local/ZopeNovo/Zope/lib/python/DocumentTemplate/DT_In.py, line 691, in
renderwob
  (Object: validar(SENHA=senha))
File
/usr/local/ZopeNovo/Zope/lib/python/DocumentTemplate/DT_In.py, line 691, in
renderwob
  (Object: idprof(SENHA=senha))
File
/usr/local/ZopeNovo/Zope/lib/python/DocumentTemplate/DT_Util.py, line 337,
in eval
  (Object: SESSION.set('idprofessor',profid))
  (Info: profid)
File string, line 0, in ?
File
/usr/local/ZopeNovo/Zope/lib/python/DocumentTemplate/DT_Util.py, line 142,
in careful_getattr
File
/usr/local/ZopeNovo/Zope/lib/python/OFS/DTMLMethod.py, line 189, in validate
  (Object: novasessao)
File
/usr/local/ZopeNovo/Zope/lib/python/AccessControl/SecurityManager.py, line
139, in validate
File
/usr/local/ZopeNovo/Zope/lib/python/AccessControl/ZopeSecurityPolicy.py,
line 159, in validate
  Unauthorized: set

 In Zope 2.14 all run ok :-)

 Jorge


 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Silly send mail problem

2000-07-27 Thread Hugo Ramos

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 27, 2000 4:56 AM
Subject: [Zope] Silly send mail problem


 Hi all,

 I had a sendmail problem, whenever I send out a mail from zope, it always
 contain an empty "To" ,"From" and "Subject", but I was able to get the
body
 of the mail, anyone got this problem before ??

 dtml-sendmail
 smtphost="mail.xyz.com"
 mailto="[EMAIL PROTECTED]"
 mailfrom="[EMAIL PROTECTED]"
 Subject="Testing from my machine"

 mail body
 /dtml-sendmail


Wrong sintax... the right one is:

dtml-sendmail smtphost="mail.xyz.com"
To: destinationemail
From: your email
Subject: your subject
Date: dtml-var ZopeTime fmt=rfc822

mail body

/dtml-sendmail


=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Would you like to see Jim Fulton and Paul Everitt in Portugal?

2000-07-27 Thread Hugo Ramos

ZopersORG team is organizing the ZWP2000 (Zope World Portugal 2000) event.
So we're having a poll about Jim and Paul comming to Portugal in our main
site: http://www.zopers.org

We hope ZWP2000 is the first of many international Zope events in Portugal.
It would be great to have Jim and Paul here for the first event but we
really need to know how people feel about this... so please vote!

For those who aren't portuguese here's the poll's translation:

Would you like to assist an international Zope conference in Portugal?
1- Claro que sim (Yes! Of course)
2- Não (No)
3- Zope??? (hehe)
4- Sou surdo (I'm deaf) :-)

We hope this can turn into a really big event!!!

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Passing Variables; How?

2000-07-12 Thread Hugo Ramos

- Original Message - 
From: "Jonathan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 12, 2000 12:45 PM
Subject: [Zope] Passing Variables; How?


 Hi all,
 
 I've got the following situation; a ZGDChart object calls a Z SQL 
 method which requires certain query parameters. Since I call the 
 ZGDChart from within DTML and not the Z SQL method, how can I define 
 the variable the SQL method needs?


dtml-call zsqlmethodname(argument)

then in the zsql you have to write your argument in the arguments textbox.

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Q: Zope meeting in Paris in August?

2000-07-11 Thread Hugo Ramos

- Original Message - 
From: "Paul Everitt" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 11, 2000 2:40 PM
Subject: [Zope] Q: Zope meeting in Paris in August?


 
 Hello everybody.  I'm chatting with someone in Paris about a possible
 Zope gathering during my vacation to see my in-laws August 11th-25th.
 I'll be in Paris for a few days in the beginning and possibly at the
 end.  Is anybody interested in hosting an event?

COUNT ME IN!!!
:-)

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] data integrity

2000-06-18 Thread Hugo Ramos

Yellow,

Is there any way to check data.fs integrity?
If data.fs becomes corrupted how can i fix it or even know about it?

thanks
---
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Zope on NT - port problem

2000-06-14 Thread Hugo Ramos

- Original Message -
From: - - [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 14, 2000 1:06 PM
Subject: [Zope] Zope on NT - port problem


 Hi all

 How do I customise the port number that Zope installs to? I'm
 running NT and there is already a service running on the default
 port 8080.

http://www.zope.org/Members/teyc/howNTService

 Also, is anyone using dreamweaver and zope? I want site designers to use
the
 tools they already have and then content management etc will be done with
 zope.

Well... you can always use dreamweaver and paste the HTML code into the text
windows... or you could upload them using the Zope FTP server... u choose!!

inte
:-)

---
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Site Powered by Zope

2000-05-31 Thread Hugo Ramos

What do you mean by turnover??
:-)

---
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org




- Original Message -
From: "Andrew Kenneth Milton" [EMAIL PROTECTED]
To: "Hugo Ramos" [EMAIL PROTECTED]
Cc: "zope" [EMAIL PROTECTED]
Sent: Wednesday, May 31, 2000 10:06 AM
Subject: Re: [Zope] Site Powered by Zope


 +[ Hugo Ramos ]-
 [Charset iso-8859-1 unsupported, filtering to ASCII...]
 | Yellow,
 |
 | Are you trying to imply that ZopersORG (www.zopers.org) isn't a large
site?
 | :-

 Dunno, what's your annual turnover? d8)

 --
 Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew
Milton
 The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   |
 ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
 PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]|

 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Portuguese Zope Portal

2000-05-22 Thread Hugo Ramos

Yellow,


Portuguese Zope Portal
Finally open


The first portuguese Zope portal is finally online but still alpha.
ZopersORG is online... but why so soon, you may ask?? because everybody was
flooding our mailbox asking for it to be online!! So we've decided to go
online with a limited number of services and develop the rest while
everybody is visiting the site!

Whe need all portuguese Zopers to send us some feedback with comments and
sugestions!! Visit us!

You'll find the site at http://www.zopers.org

bye

---
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )