[Zope] Zope 5.3 and webdav

2021-11-29 Thread Giampiero Benvenuti
Hello everyone,


I was reading the zope.conf file of zope5.3 and it looks like webdav is 
supported.
Does it need ZServer for that? I thoght ZServer wasnt supported any longer.

Thanks for your tips.

—giampiero

___
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] A basic question I couldn't fine the answer on google

2021-07-19 Thread Giampiero Benvenuti
Hi there,

let’s say, I want to upgrade from zope5.1.2 to zope 5.2.1
Should I just replace the zope5.2.1 Data.fs with the zope5.1.2 one?

Or, if this sound silly, how would you do it?

Thank You,

—giampiero

___
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] Two or three things about Zope 5

2021-05-07 Thread Giampiero Benvenuti
Thank You Jürgen and Thank You Jens!

ok, with your infos I start  to see some light.
The error management makes sense now.

Also, the settings for the timezone are now very clear.
I also realised I can do something like DateTime('Europe/Rome’). It can be 
useful when you have multiple sites in one Zope instance in different time 
zones. (is it a good school?)

Ok, some baby steps are done, Now I will get to the session "black magic”.

Oh, one more thing: when I start zope in this way:
 /Applications/zope512/bin/runwsgi /Applications/zope512/etc/zope.ini 2>&1 &
without the -v, zope is running disattached from the terminal but I get 
warnings like: 

WARNING [Application:390][MainThread] Duplicate Product name: After loading 
Product 'BTreeFolder2' from 
'/apps/zope512/zope/lib64/python3.6/site-packages/Products', I skipped the one 
in '/apps/zope512/zope/lib/python3.6/site-packages/Products’.
The same Warning for all the Products I installed with pip: bin/pip install…

From the terminal I also get all the errors printouts (even if Zope is 
disattached).

Thanks again guys,

—giampiero

> On 6 May 2021, at 17:51 45, Jens Vagelpohl  wrote:
> 
> Hi Giampiero,
> 
> 1. Hiding the original exception is done by the waitress WSGI server Zope 
> uses, not Zope itself. Allowing tracebacks to show in the browser leads to an 
> information disclosure vulnerability. You can use the expose_tracebacks 
> argument to waitress by adding it to your WSGI configuration .ini file in the 
> section for the server:
> 
> [server:main]
> ...
> expose_tracebacks = True.
> 
> Don’t do this for a production site, though. The “minimalistic” error page is 
> there for security reasons.
> 
> 2. As Jürgen mentioned, 
> https://zope.readthedocs.io/en/latest/zopebook/Sessions.html#alternative-server-side-session-backends-for-zope-4
>  has more information about using sessions in Zope.
> 
> 3. Instead of doing a separate EXPORT in your shell when starting Zope you 
> can edit your Zope configuration file and add an environment section like 
> this:
> 
> 
>TZ Europe/Rome
> 
> 
> jens
> 
> 
> 
>> On 4. May 2021, at 16:24 , Giampiero Benvenuti 
>>  wrote:
>> 
>> Hi there,
>> 
>> first of all, I want to thanks all the people who works on the project “5”.
>> Second, please bear with me while I try to communicate my failures with the 
>> "5”.
>> I was able to install zope5.1.2 on my mac and also on opalstack.com with the 
>> help of Sean. It looks great! The Chameleon Editor works fine and so almost 
>> all the products I would need.
>> So far, the only issues I have with it are the errors expressions and the 
>> Session Data Manager.
>> 1. When in some script I do some typo like “reuest” instead or “request” I 
>> get the error “Internal Server Error The server encountered an unexpected 
>> internal server error (generated by waitress)”
>> Question: can I have a better and less “minimalistic” error expressions, 
>> something more “friendly”?
>> 2. Yeah! Session Data Manager: "Sessioning is currently disabled because the 
>> session data container path setting is invalid. Please enter the path to a 
>> valid session data container object.”. What can I do bout it?
>> 3. Sorry, I forgot about this: zone time. In zope 2.xx I used to set the 
>> local/zone time in this way: in instance/bin/runzope: export TZ=Europe/Rome. 
>> How do I fix it in zope5?
>> 
>> Thanks you all for your work and help,
>> 
>> —giampiero
>> 
>> ___
>> 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 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 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] Two or three things about Zope 5

2021-05-04 Thread Giampiero Benvenuti
Hi there,

first of all, I want to thanks all the people who works on the project “5”.
Second, please bear with me while I try to communicate my failures with the "5”.
I was able to install zope5.1.2 on my mac and also on opalstack.com with the 
help of Sean. It looks great! The Chameleon Editor works fine and so almost all 
the products I would need.
So far, the only issues I have with it are the errors expressions and the 
Session Data Manager.
1. When in some script I do some typo like “reuest” instead or “request” I get 
the error “Internal Server Error The server encountered an unexpected internal 
server error (generated by waitress)”
Question: can I have a better and less “minimalistic” error expressions, 
something more “friendly”?
2. Yeah! Session Data Manager: "Sessioning is currently disabled because the 
session data container path setting is invalid. Please enter the path to a 
valid session data container object.”. What can I do bout it?
3. Sorry, I forgot about this: zone time. In zope 2.xx I used to set the 
local/zone time in this way: in instance/bin/runzope: export TZ=Europe/Rome. 
How do I fix it in zope5?

Thanks you all for your work and help,

—giampiero

___
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] zope2.13.29 issue: WARNING Application Duplicate Product name: After loading Product...

2019-06-18 Thread Giampiero Benvenuti
Hello everybody,

I just installed zope2.13.29 following the instruction here:
https://zope.readthedocs.io/en/2.13/INSTALL-virtualenv.html

when I ./bin/zopectl fg
I get: 
WARNING Application Duplicate Product name: After loading Product * from 
/home/giampiero/zope2.13.29/local/lib/python2.7/site-packages/Products,  I 
skipped the one in 
'/home/giampiero/zope2.13.29/lib/python2.7/site-packages/Products

It’s a fact that all the products are installed in both directories: 
zope2.13.29/local/lib/python2.7/site-packages/Products
and 
zope2.13.29/lib/python2.7/site-packages/Products

How should I go with it? Should I leave it as it is, or should I do something 
about it? If so what would you recommend?

Thanks so much in advance for your help.

Giampiero
___
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 4.0 successful installation- still missing editing features

2019-06-17 Thread Giampiero Benvenuti
Hi there,

I’m very happy with my new installation of zope4.0. /python3
The only glitch found was with the paste module.
That was easy to take care of with /bin/pip install paste.

Installing other products was very smooth:
/bin/pip install Products.PythonScripts
/bin/pip install Products.ZMySQLDA
/bin/pip install Products.ExternalMethod
/bin/pip install Pillow

Now, the only missing part of the puzzle is a tool to make it easier the 
editing of the files, python script, page templates etc... 

How can I take care of this issue?
Reading the documentation, I found that is not possible to access the files 
trough webdav, ftp or external editor because I would need ZServer and ZServer 
doesn't work with python3.

Am I missing something? Do I have any other alternative of editing the files 
trough ZMI?

All my bests to all of you and thanks for your help.


Giampiero
___
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] Zone 4 issue: The 'Paste' distribution was not found and is required by the application

2019-06-14 Thread Giampiero Benvenuti
Thanks Jens & Alberto,

you right, I guess the paste version was not up to date:

./bin/pip install paste
Collecting paste
  Using cached 
https://files.pythonhosted.org/packages/fc/8e/287533a1515f2e9eaf34be06f35e8f170d0cb625a2ada2c5e41c0b9ae1e5/Paste-3.0.8-py2.py3-none-any.whl
Requirement already satisfied: six>=1.4.0 in ./lib/python3.6/site-packages 
(from paste) (1.12.0)
Installing collected packages: paste
Successfully installed paste-3.0.8

./bin/runwsgi -v etc/zope.ini
Starting server in PID 3172.
Serving on http://localhost:8080


Zope4.0 it’s now up and running!

> On 14 Jun 2019, at 16:34 48, Jens Vagelpohl  wrote:
> 
> You can run “bin/pip install Paste” in the virtualenv.
> 
> jens
> 
> 
> 
>> On 14. Jun 2019, at 13:46 , Giampiero Benvenuti 
>>  wrote:
>> 
>> Hello,
>> 
>> I was wondering if somebody run into this error, and how should I take care 
>> of it:
>> 
>> python3.6 -m venv zope4.0
>> cd zope4.0
>> bin/pip install -r 
>> https://zopefoundation.github.io/Zope/releases/4.0/requirements-full.txt
>> bin/mkwsgiinstance -d .
>> bin/runwsgi -v etc/zope.ini
>> 
>> Error:
>> File 
>> "/Applications/zope4.0/lib/python3.6/site-packages/pkg_resources/__init__.py",
>>  line 778, in resolve
>>  raise DistributionNotFound(req, requirers)
>> pkg_resources.DistributionNotFound: The 'Paste' distribution was not found 
>> and is required by the application
>> 
>> Any idea?
>> 
>> Thanks so much,
>> 
>> Giampiero
>> ___
>> 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 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 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] Zone 4 issue: The 'Paste' distribution was not found and is required by the application

2019-06-14 Thread Giampiero Benvenuti
Hello,

I was wondering if somebody run into this error, and how should I take care of 
it:

python3.6 -m venv zope4.0
cd zope4.0
bin/pip install -r 
https://zopefoundation.github.io/Zope/releases/4.0/requirements-full.txt
bin/mkwsgiinstance -d .
bin/runwsgi -v etc/zope.ini

Error:
  File 
"/Applications/zope4.0/lib/python3.6/site-packages/pkg_resources/__init__.py", 
line 778, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'Paste' distribution was not found and 
is required by the application

Any idea?

Thanks so much,

Giampiero
___
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] Annoucement: Zope 4.0b3 released

2018-01-27 Thread Giampiero Benvenuti
Thanks for your work Michael!

—giampiero

> On 27 Jan 2018, at 15:54 25, Michael Howitz  wrote:
> 
> On behalf of Zope developer community I am pleased to announce the
> release of Zope 4.0b3.
> 
> You can download it via PyPI: https://pypi.org/project/Zope/4.0b3
> 
> For more information on what is new resp. fixed in this release, see the
> change log:
> https://zope.readthedocs.io/en/latest/changes.html#b3-2018-01-27
> 
> 
> --
> Mit freundlichen Grüßen
> Michael Howitz
> 
> ___
> 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 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] ZopeEditManager 0.9.8 and mac OSSierra

2017-08-11 Thread Giampiero Benvenuti
Hi Michael,

thanks for your message.

no, I’haven’t try ZopeEditManager 0.9.8 with mac OSSierra yet. That’s why I 
resist to upgrade to OSSierra… I use  ZopeEditManager all the time and it would 
be a big loss.

On my macs I run Yosemite 10.10.5 and ZopeEditManager 0.9.8 runs just fine.

What would be the smart move?

Thank You,

Giampiero

> On 11 Aug 2017, at 09:28, Michael Howitz  wrote:
> 
> Am 10.08.2017 um 15:07 schrieb Giampiero Benvenuti 
> :
>> Anyone knows if ZopeEditManager 0.9.8 works with mac OSSierra?
> 
> The last time I used and fixed it was 10.7:
> https://icemac15.wordpress.com/2011/08/16/zopeeditmanager-for-mac-os-x-lion/
> 
> I think my patch got merged upstream.
> But there seems to be a successor:
> http://zacbir.net/blog/2013/05/01/zem-0-9-9/
> 
> Did you already try ZopeEditManager 0.9.8 works with mac OSSierra?
> Where there any error messages?
> 
> 
> -- 
> Mit freundlichen Grüßen
> Michael Howitz
> 

___
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] ZopeEditManager 0.9.8 and mac OSSierra

2017-08-10 Thread Giampiero Benvenuti
Anyone knows if ZopeEditManager 0.9.8 works with mac OSSierra?

Thanks a lot,

Giampiero
___
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 2.13.26 and Product ExternalEditor

2017-03-14 Thread Giampiero Benvenuti
Hi Michael,

you are totally right! Thanks for your answer.
Is what I have done now and everything looks good.
Thanks again.

By the way, is there somewhere a stable release of zope4.x?

Bests,

Giampiero

> On 14 Mar 2017, at 07:52 15, Michael Howitz  wrote:
> 
> Am 13.03.2017 um 14:44 schrieb Giampiero Benvenuti 
> :
>> Hello everybody,
>> 
>> I would like very badly to upgrade to 2.13.26.
>> The installation of zope is working just fine.
>> The problem appear when I install the product ExternalEditor (ver. 2.0.2).
> 
> Hi!
> 
> Try version 1.1.3 of Products.ExternalEditor as version 2.x was updated to 
> Zope 4.x which no longer has icons in the ZMI.
> 
> 
> --
> Mit freundlichen Grüßen
> Michael Howitz
> 

___
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 2.13.26 and Product ExternalEditor

2017-03-13 Thread Giampiero Benvenuti
Hello everybody,

I would like very badly to upgrade to 2.13.26.
The installation of zope is working just fine.
The problem appear when I install the product ExternalEditor (ver. 2.0.2).
After installing it and restarting zope, all the icons of the products in ZMI 
disappear… I can see just the pencil icon of the External Editor. 

Do you  have a clue about it? I don’t no why.
Any way to fix it?

Thanks so much,

Giampiero
___
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 in The Netherlands

2015-07-08 Thread Giampiero Benvenuti
we like canals, bridges, the orange color and the smell of grass :)

—giampiero

> On 08 Jul 2015, at 16:02 32, Andreas Jung  wrote:
> 
> Why does it has to be NL?
> 
> -aj
> 
> 
> 
> On 8 Jul 2015, at 15:10, Kees de Brabander wrote:
> 
>> Hi there,
>> I desperately need a zope server, at least for a transition period. Is there 
>> in The Netherlands a company that still uses zope or has experience with 
>> zope that can help or advise me?
>> tia, Cornelis J. de Brabander
>> ___
>> 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 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 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 in The Netherlands

2015-07-08 Thread Giampiero Benvenuti
Hi,

webfaction.com , they have servers in Amsterdam

—giampiero


> On 08 Jul 2015, at 15:10, Kees de Brabander  wrote:
> 
> Hi there,
> I desperately need a zope server, at least for a transition period. Is there 
> in The Netherlands a company that still uses zope or has experience with zope 
> that can help or advise me?
> tia, Cornelis J. de Brabander
> ___
> 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 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] Any news about a unstring as a folder title?

2014-04-23 Thread Giampiero Benvenuti
Yes Sir, it does answer my question indeed. Loud, clear and short.
Have a nice day.
Thank You.

On 23 Apr 2014, at 16:39 10, Andreas Jung  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Doesn't WONTFIX answer your question?
> 
> - -aj
> 
> Giampiero Benvenuti wrote:
>> Hello,
>> 
>> I’m dealing with the issue described here:
>> https://bugs.launchpad.net/zope2/+bug/142738
>> 
>> Or the impossible process of having a ustring as a folder title
>> property.
>> 
>> Am I missing something or is it now possible?
>> 
>> Thank You,
>> 
>> Giampiero ___ 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 )
> 
> 
> - -- 
> Regards
> Andreas Jung
> andr...@andreas-jung.com
> about.me/andreasjung
> 
> EuroPython 2014 Organization Team - Communications
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iQGUBAEBAgAGBQJTV9COAAoJEADcfz7u4AZj94YLvRU/UZlEbcDucMBIut1022G0
> C2CONfZJr+J5X3+yt2rw8yJ0OmcJ5w5KKJgjUGnisTiFaOpTUWzL2E3nFufJ+n3K
> MwDKDCYbtqu9QfeTP9BLen7Dav9Rgeazd5+Em9fj/20jDx62m7Yhm6sOirytAg+A
> NVfF+I3dTsSmuqxuxcXs6fWa4Gf7gv/0jCQACeqP8tdBrKN1XxFZH1bDGbKgz27o
> qCrJSdwzUagkfAx7V/xLwMqKRuHH38bl0xGWyq63Vir975btr/jRJQ6pkap/O/i+
> g1hhhsf4WkIYYOyw2a4t9T1zc2SmNCRNdKq5Mm/XtT2IpriO5j5df2cTsGXwhD4P
> 8ONKBkcvMqBVPYZ2Y6FYDdo9Tu64IoYMjrUKFILkn7SW3sGZAFCGJU+AK3OFca3R
> hMQsx/S1fit2Y7RA4hnw4GjO9/R8ECiYY8bv0nIyvdZUrjr7yNKuMQDF8ljukX4T
> B+k2Aau9I+yynDvh+A4elZpsjsRXnvA=
> =4Ua6
> -END PGP SIGNATURE-

___
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] Any news about a unstring as a folder title?

2014-04-23 Thread Giampiero Benvenuti
Hello,

I’m dealing with the issue described here: 
https://bugs.launchpad.net/zope2/+bug/142738

Or the impossible process of having a ustring as a folder title property.

Am I missing something or is it now possible?

Thank You,

Giampiero
___
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] Setting Timezone on Zope2.13.20 in virtualenv

2013-07-20 Thread Giampiero Benvenuti
Please ignore my previous messages and forgive me for  this mess.

Now it looks like the best way to set the time zone is adding a line:

export TZ=Europe/Rome

to the beginning of the file instance/bin/runzope

Still, I'm not sure that's' the proper way to do it.

Somebody can please confirm?

Thanks,

Giampiero


On Jul 19, 2013, at 13:09 43, Giampiero Benvenuti wrote:

> I'm sorry, never mind.
> 
> it has to be in this format:
> 
> 
> TZ Europe/Rome
> 
> 
> and it works.
> 
> Best,
> 
> Giampiero
> 
> On Jul 19, 2013, at 10:54 13, Giampiero Benvenuti wrote:
> 
>> Hello!
>> 
>> I just installed the latest zope version 2.13.20 using virtualenv. I would 
>> like to be able to set the timezone to Europe/Rome.
>> So far, I try this in instance/etc/zope.conf:
>> 
>> 
>> TZ "Europe/Rome"
>> 
>> 
>> But I didn't have any success.
>> 
>> Do you have any hint?
>> 
>> Thanks for your help,
>> 
>> 
>> Giampiero
>> ___
>> 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 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] Setting Timezone on Zope2.13.20 in virtualenv

2013-07-19 Thread Giampiero Benvenuti
I'm sorry, never mind.

it has to be in this format:


TZ Europe/Rome


and it works.

Best,

Giampiero

On Jul 19, 2013, at 10:54 13, Giampiero Benvenuti wrote:

> Hello!
> 
> I just installed the latest zope version 2.13.20 using virtualenv. I would 
> like to be able to set the timezone to Europe/Rome.
> So far, I try this in instance/etc/zope.conf:
> 
> 
> TZ "Europe/Rome"
> 
> 
> But I didn't have any success.
> 
> Do you have any hint?
> 
> Thanks for your help,
> 
> 
> Giampiero
> ___
> 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 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] Setting Timezone on Zope2.13.20 in virtualenv

2013-07-19 Thread Giampiero Benvenuti
Hello!

I just installed the latest zope version 2.13.20 using virtualenv. I would like 
to be able to set the timezone to Europe/Rome.
So far, I try this in instance/etc/zope.conf:


 TZ "Europe/Rome"


But I didn't have any success.

Do you have any hint?

Thanks for your help,


Giampiero
___
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] Product CalendarTag on zope2.13.19

2013-04-02 Thread Giampiero Benvenuti
I know Miguel, I see your point. And yes I use js calendars as well.

As I said, I need this product in order to migrate a site...

In any case this morning I got an email from someone asking for it.

The Calendar-tag product is here:

http://www.staticfiles.it/clients/chiaroscuro/zope/products/CalendarTag-1.0.20.tar.gz

I change the version number from 1.0.19 to 1.0.20.

I hope I did the right thing.


Best,

Giampiero

 
On Apr 1, 2013, at 21:49 20, Miguel Beltran R. wrote:

> Really you need this?
> Maybeyou could use a calendar with javascript
> just one example http://javascriptcalendar.org/javascript-date-picker.php
> I'm sure that exists many more
> 
> 
> 2013/3/28 Giampiero Benvenuti 
> Thanks Johannes and Tres,
> 
> the trick you both suggested works!
> 
> I am forced to use this old product because I'll need to migrate a site (from 
> zope2.10) that is using it.
> The Calendar product comes from here:
> 
> http://old.zope.org/Members/teyc/CalendarTag/
> 
> Now, that the Calendar works, what should we do with it?
> Release it again with a new version number, or just forget about it? (It is 
> old, indeed).
> 
> regards,
> 
> Giampiero
> 
> On Mar 27, 2013, at 18:04 13, johannes raggam wrote:
> 
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > On 03/27/2013 04:44 PM, Giampiero Benvenuti wrote:
> >> Still, one problem is this type of error:
> >>
> >> SyntaxError: Non-ASCII character '\xf1' in file
> >> /Applications/zope21319/Products/Calendar/CalendarTag.py on line
> >> 139, but no encoding declared;
> > just place this line on top of the file:
> >
> > # -*- coding: utf-8 -*-
> >
> > with this, you declare the encoding of the file to be utf-8, which is
> > probably the encoding you need. http://www.python.org/dev/peps/pep-0263/
> >
> > what you describe sounds as if the Calendar product is not actively
> > maintained. what usecase do you want to solve? where did you get the
> > Calendar product from?
> >
> > best,
> > johannes raggam
> >
> >
> >
> > - --
> > programmatic  web development
> > di(fh) johannes raggam / thet
> > python plone zope development
> > mail: off...@programmatic.pro
> > web:  http://programmatic.pro
> >  http://bluedynamics.com
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.4.11 (GNU/Linux)
> > Comment: Using GnuPG with undefined - http://www.enigmail.net/
> >
> > iEYEARECAAYFAlFTJo0ACgkQW4mNMQxDgAd1UACgrZPkmA6qECH9kqplNG3vAz2N
> > MNIAn1corxQzogbnr5MHe38SlSSI2xCo
> > =zNPb
> > -END PGP SIGNATURE-
> 
> ___
> 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 )
> 
> 
> 
> -- 
> 
> Lo bueno de vivir un dia mas
> es saber que nos queda un dia menos de vida

___
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] Product CalendarTag on zope2.13.19

2013-03-28 Thread Giampiero Benvenuti
Thanks Johannes and Tres,

the trick you both suggested works!

I am forced to use this old product because I'll need to migrate a site (from 
zope2.10) that is using it.
The Calendar product comes from here:

http://old.zope.org/Members/teyc/CalendarTag/

Now, that the Calendar works, what should we do with it?
Release it again with a new version number, or just forget about it? (It is 
old, indeed).

regards,

Giampiero

On Mar 27, 2013, at 18:04 13, johannes raggam wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 03/27/2013 04:44 PM, Giampiero Benvenuti wrote:
>> Still, one problem is this type of error:
>> 
>> SyntaxError: Non-ASCII character '\xf1' in file
>> /Applications/zope21319/Products/Calendar/CalendarTag.py on line
>> 139, but no encoding declared;
> just place this line on top of the file:
> 
> # -*- coding: utf-8 -*-
> 
> with this, you declare the encoding of the file to be utf-8, which is
> probably the encoding you need. http://www.python.org/dev/peps/pep-0263/
> 
> what you describe sounds as if the Calendar product is not actively
> maintained. what usecase do you want to solve? where did you get the
> Calendar product from?
> 
> best,
> johannes raggam
> 
> 
> 
> - -- 
> programmatic  web development
> di(fh) johannes raggam / thet
> python plone zope development
> mail: off...@programmatic.pro
> web:  http://programmatic.pro
>  http://bluedynamics.com
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with undefined - http://www.enigmail.net/
> 
> iEYEARECAAYFAlFTJo0ACgkQW4mNMQxDgAd1UACgrZPkmA6qECH9kqplNG3vAz2N
> MNIAn1corxQzogbnr5MHe38SlSSI2xCo
> =zNPb
> -END PGP SIGNATURE-

___
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] Product CalendarTag on zope2.13.19

2013-03-27 Thread Giampiero Benvenuti
Thanks so much for your tips!
I'm running out right now.
I'll be testing and reporting tomorrow.

Giampiero

On Mar 27, 2013, at 17:56 44, Tres Seaver wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 03/27/2013 11:44 AM, Giampiero Benvenuti wrote:
>> Hello!
>> 
>> I'm running a zope2.13.19 instance on my mac. I intstalled the product
>> Calendar version 1.0.19
>> 
>> I adjusted the file __init__.py
>> 
>> Change the line:
>> 
>> from ImageFile import ImageFile
>> 
>> with:
>> 
>> from App.ImageFile import ImageFile
>> 
>> so far so good.
>> 
>> Still, one problem is this type of error:
>> 
>> SyntaxError: Non-ASCII character '\xf1' in file
>> /Applications/zope21319/Products/Calendar/CalendarTag.py on line 139,
>> but no encoding declared;
>> 
>> Is pointing to lines containing non ASCII character such as this one:
>> 
>> 'pl':
>> ('StyczeÒ','Luty','Marzec','KwiecieÒ','Maj','Czerwiec','Lipiec','SierpieÒ','WrzesieÒ','Paºdziernik','Listopad','GrudzieÒ')
>> 
>> What is the best way to take care of this issue? Of course, the
>> fastest is to get rid of some languages... not good.
>> 
>> It could be nice to release a complete working version of the
>> product.
>> 
>> Please give me some hints.
> 
> You could add the encoding at the top of the Python module.  See PEP 263:
> 
>  http://www.python.org/dev/peps/pep-0263/
> 
> 
> 
> Tres.
> - -- 
> ===
> Tres Seaver  +1 540-429-0999  tsea...@palladion.com
> Palladion Software   "Excellence by Design"http://palladion.com
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with undefined - http://www.enigmail.net/
> 
> iEYEARECAAYFAlFTJMwACgkQ+gerLs4ltQ6sugCeNDKMadJOIa1IlmdoIvIImO+4
> +FcAnAzX7dZrorjmoJCmSvBYV4U+a7mH
> =hmSL
> -END PGP SIGNATURE-
> 
> ___
> 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 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] Product CalendarTag on zope2.13.19

2013-03-27 Thread Giampiero Benvenuti
Hello!

I'm running a zope2.13.19 instance on my mac. I intstalled the product Calendar 
version 1.0.19

I adjusted the file __init__.py

Change the line:

from ImageFile import ImageFile

with:

from App.ImageFile import ImageFile

so far so good.

Still, one problem is this type of error:

SyntaxError: Non-ASCII character '\xf1' in file 
/Applications/zope21319/Products/Calendar/CalendarTag.py on line 139, but no 
encoding declared;

Is pointing to lines containing non ASCII character such as this one:

'pl': 
('StyczeÒ','Luty','Marzec','KwiecieÒ','Maj','Czerwiec','Lipiec','SierpieÒ','WrzesieÒ','Paºdziernik','Listopad','GrudzieÒ')

What is the best way to take care of this issue?
Of course, the fastest is to get rid of some languages... not good.

It could be nice to release a complete working version of the product.

Please give me some hints.


Thank You,

Giampiero
___
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] Catalog a dictionary

2012-08-06 Thread Giampiero Benvenuti
Hi Andreas,

what I'm trying to do is indexing in a Catalog some Folder objects manipulating 
some properties.

If I assign to the request the new key value everything works as expected.
For instance:
req=context.REQUEST

for obj in context.objectValues('Folder'):
req.set('city', obj.city+' '+obj.province)
req.set('id', ('/').join(obj.getPhysicalPath()))
container.MyCatalog.catalog_object(req,req['id'])

I was just wondering why I am not able to get the same results (only the id get 
indexed but not the city) building and indexing dictionaries in the following 
way:

for obj in context.objectValues('Folder'):
D={}
D['id'] =  ('/').join(obj.getPhysicalPath())
D['city'] = obj.city+' '+obj.province
container.MyCatalog.catalog_object(D,D['id'])

And yes, the indexes name are the same and they are listed in the catalog.

P.S. I know i can assign multiple attributes to an index in the catalog, still 
I wonder why the above code doesn't work.

Thanks for your help,


G.

On Aug 6, 2012, at 07:24 31, Andreas Jung wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> 
> 
> Giampiero Benvenuti wrote:
>> Hello!
>> 
>> can you please give me some hints on how to catalog a list of
>> dictionaries? Is it possible?
> 
> What have you tried? What exactly is not working?
>> 
>> L= [{'id':'1','lastName':'Rossi','firstName':'Mario'}, {...), etc..]
>> 
>> for d in L: context.Mycatalog.catalog_object( d, d['id'])
>> 
>> 
> Are you use that you created the related indexes that you are using for
> indexes?
> 
> Please provide a reasonable description of the problem (if you have one).
> 
> - -aj
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iQGUBAEBAgAGBQJQH1UOAAoJEADcfz7u4AZjbbwLwIj/kqgzC8DazRlomyO4Auv0
> B751yKOSYWo+v6j1Ren8SFfuImie3d98oaOp5w2RHL7TyqDU9iEbfDFhTjKmFE9t
> KeihBckCkBcsquE04Uih5vnKNVh1IOZhD6VB0yebtr4776bm7HBXi4b8ZVfWjH1Z
> NV8HBMRku+0f4M0X8MyWGETSat5wCBO8WnnoYCsHGxpE2VNvgYAIk8LcXGdZsExa
> HGEFmmXJy1Z8NAMrGPMQurw9JfBrC7LWDd4feEmXMw6az06kkZWNnp42Zp9YLzcR
> tBMwigyZLMNOO9Tt+s+orGKWbKzKxoGqU1/uxGngpR+8/n4bYgFv86/46QwvMFqF
> ScInrrYwufvqQUo9jks4HDv+BoRg6v1tUkKipu50ICXk7f1nwRsSy0OGDGmSegN+
> JeGcFvUCJb2y0t6/ruBNTiM8Gf1cKr50Z6M5I+lG09Hoyl0iyYwdJu0s8RoGMTOQ
> WAYeUXCbzu/CKevZIcXvU6qP/mx5Bfc=
> =XvKh
> -END PGP SIGNATURE-
> 

___
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] Catalog a dictionary

2012-08-03 Thread Giampiero Benvenuti
Hello!

can you please give me some hints on how to catalog a list of dictionaries? Is 
it possible?

L= [{'id':'1','lastName':'Rossi','firstName':'Mario'}, {...), etc..]

 for d in L:
context.Mycatalog.catalog_object( d, d['id'])

Thanks so much in advance!

GP

___
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] A basic question

2012-07-14 Thread Giampiero Benvenuti
Hello,

I have a python script in my zope instance:

dt=DateTime(2012,1)
print dt
print dt.strftime('%Y')
print dt.year()

return printed
2012/01/01 00:00:00 GMT+2
2011
2012


Why do I get two different values for the year (2011, 2012)?

Thank you,


Giampiero
___
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] External editor "timing out"

2012-02-17 Thread Giampiero Benvenuti

Hello,

when I edit a page template or a dtml method with ExternalEditor I get  
the following errors:


--
Traceback (innermost last):
  Module ZPublisher.Publish, line 126, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 46, in call_object
  Module Products.PageTemplates.ZopePageTemplate, line 351, in PUT
  Module webdav.Resource, line 175, in dav__simpleifhandler
AttributeError: 'NoneType' object has no attribute 'refresh'
--
Traceback (innermost last):
  Module ZPublisher.Publish, line 126, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 46, in call_object
  Module OFS.DTMLMethod, line 378, in PUT
  Module webdav.Resource, line 179, in dav__simpleifhandler
PreconditionFailed: Condition failed.
-

Please notice the error happen when I try to save the documents after  
more or less 10 minutes since the last save. No error happen If I save  
the document after a minute or two since I opened it.


Zope Version (2.13.12, python 2.7.1, linux2)
Python Version 2.7.1 (r271:86832, Sep 13 2011, 19:13:17) [GCC 4.4.4  
20100726 (Red Hat 4.4.4-13)]

ExternalEditor-1.1.0
ZopeEditManager 0.9.7 Mac osx

Can someone help me up with this issue?

Best regards,

Giampiero

___
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] zope2.13.12 & ZMySQLDA

2012-01-23 Thread Giampiero Benvenuti

Hello,

I'm running zope2.13.12, python 2.7.1 and I'm trying to install  
ZMySQLDA 3.1.1.

In the zope_event log I get this error:

--
2012-01-23T12:11:17 ERROR Application Couldn't install ZMySQLDA
Traceback (most recent call last):
  File "/home/giampiero4/webapps/zope/lib/python2.7/Zope2-2.13.12- 
py2.7.egg/OFS/Application.py", line 658, in install_product

global_dict, global_dict, silly)
  File "/home/giampiero4/webapps/zope/instance/Products/ZMySQLDA/ 
__init__.py", line 90, in 

import DA
  File "/home/giampiero4/webapps/zope/instance/Products/ZMySQLDA/ 
DA.py", line 92, in 

from db import DBPool, DB
  File "/home/giampiero4/webapps/zope/instance/Products/ZMySQLDA/ 
db.py", line 114, in 

from joinTM import joinTM
  File "/home/giampiero4/webapps/zope/instance/Products/ZMySQLDA/ 
joinTM.py", line 3, in 

from Shared.DC.ZRDB.TM import TM
ImportError: No module named ZRDB.TM
--

Can someone help me out with this issue?

Thanks a lot,

Giampiero
___
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 Catalog sorting

2010-05-28 Thread Giampiero Benvenuti
Hello,

I have a simple/silly question:

how can you sort the Catalog results with 2 parameters? Es:  
sort_on='last_name', sort_on='first_name'... in the old days was  
simple: sort='last_name, first_name'

Thank You,

Giampiero 
___
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 2.11.1-final MailHost Product

2008-10-17 Thread Giampiero Benvenuti
To whom it may concern,

Thanks so much for your good work and for adding the new feature  
(MailHost with asynchronous mode).
I have just installed the new version of Zope (2.11.1) on my Mac to  
be able to use it.
I did struggle a bit, though, because I didn't realize that in the  
method for sending email “mto” has to be a list and not a string, as  
it used to be.
Is it correct?
Maybe I'm wrong, but I couldn't find any indication for it in the  
documentation. It would be nice if you could add this, or clarify  
this point.

One more little thing: in /MailHost/dtml/manageMailHost.dtml

the two checkbox tags are not closed  />

Thanks again and best regards,

Giampiero
___
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] change password through script messes up session

2008-10-06 Thread Giampiero Benvenuti
Hi,

what I do:

req=context.REQUEST

context.acl_users.manage_users('Change', {'name':req['name'],  
'password':req['pswd'], 'confirm':req['cpswd'], 'roles': req 
['roles'], 'domains':''})



On Oct 6, 2008, at 3:48 AM, Thibaud Morel l'Horset wrote:

> Hello all,
>
>   I'm trying to write a piece of code that just changes the  
> password of a user as they are logged in. This is in a Script 
> (Python). I'm using PAS and CookieCrumbler and the code is as follows:
> container.acl_users.users.manage_updateUserPassword(user 
> ['id'],password,password)
>
>   This does work and change the password, however what happens then  
> is anytime I try to access a resource that I could view prior to  
> changing the password, I get a basic pop-up auth login prompt (even  
> though I'm using CookieCrumbler), and entering the new creds  
> doesn't work. If I logout through the login/logout link and log  
> back in with the web form, everything is fine (and the new creds do  
> work then).
>
>   Here is the error that's thrown in the logs:
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 106, in publish
>   Module ZPublisher.BaseRequest, line 468, in traverse
>   Module ZPublisher.HTTPResponse, line 687, in unauthorized
>
>
> Unauthorized: You are not authorized to access this  
> resource.
>
>   So basically, I can't access any protected object until I log out  
> and log back in.
>
>   Anyone have any insight here? I've been trying to read the Plone  
> source code to figure out how they do it but I can't get their code  
> to work... I've been searching around for an answer to this all  
> weekend but can't find anything :(
>
>   Thanks for the help,
>
> - Teebes
> ___
> 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 )


Re: [Zope] manage_cutObjects/manage_pasteObjects problem ...

2008-07-25 Thread Giampiero Benvenuti


On Jul 23, 2008, at 7:06 AM, Ajay Deshpande wrote:


Hi all:

Ive been trying to cut objects from one context and paste them into  
another using a script python. But I get a "CopyError" when I try  
doing this. This is my code snippet and the traceback ...


Snippet...
...
obj = context.restrictedTraverse(path)
obj_parent = obj.aq_inner.aq_parent
dest_folder = context.Dest # this is a folder object
copy_info = obj_parent.manage_cutObjects((context.getId()))
dest_folder.manage_pasteObjects(copy_info)
...


I think the problem is your 4th line: copy_info =  
obj_parent.manage_cutObjects((context.getId()))

copy_info should be the object you want to cut

it should be something like this:
...
src=context.your_cut_context[obj_id]
context.your_cut_context.manage_cutObjects([src])

dst=context.your_paste_context
dst.manage_pasteObjects(src)
...

Let me know if it works for you,

Giampiero


___
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] Mac os x, zope 2.11.0 importing products

2008-06-21 Thread Giampiero Benvenuti

Dear all,

I just installed successfully zope2.11.0 on my mac.
I'm having a problem with importing some products. For instance  
ZMySQLDA (v. 2.0.8) gives me this error:


--
2008-06-21T12:37:30 ERROR Application Couldn't install ZMySQLDA
Traceback (most recent call last):
  File "/Applications/zope211/lib/python/OFS/Application.py", line  
758, in install_product

global_dict, global_dict, silly)
  File "/Applications/zope211/instance1/Products/ZMySQLDA/ 
__init__.py", line 91, in ?

import DA
  File "/Applications/zope211/instance1/Products/ZMySQLDA/DA.py",  
line 155, in ?

misc_={'conn': ImageFile(
  File "/usr/local/lib/python2.4/site-packages/PIL/ImageFile.py",  
line 74, in __init__

self.fp = open(fp, "rb")
IOError: [Errno 2] No such file or directory: 'Shared/DC/ZRDB/www/ 
DBAdapterFolder_icon.gif'

--

After a google search I found this: http://dev.x3ng.com.br/browser/ 
Recria/buildout/patches/zmysqlda-imagefile.patch?rev=2386&format=txt


It looks like the problem is related to PIL and after applying the  
patch (-from ImageFile import ImageFile +from Globals import  
ImageFile) everything works just fine.


The question is: why this problem doesn't happen with zope2.10.5? I  
have the same setup... same python, same PIL. Applying the patch to  
the products doesn't look like a good school.

Do you have any suggestion?

Your help is much appreciated,

Giampiero



___
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] PageTemplates len() of unsized object

2008-05-28 Thread Giampiero Benvenuti

Thanks Dieter,

I was able to "solve" the problem by uninstalling all the products. By  
trial and error I found out the problem was caused by the Placeless  
Translation Service product. Maybe there was some dependency from  
something else; I can't tell. I just got rid of it and now everything  
works as normal.


Thanks anyhow,

Giampiero


On May 28, 2008, at 8:48 PM, Dieter Maurer wrote:


Giampiero Benvenuti wrote at 2008-5-24 11:47 +0200:

...
after the upgrade from zope2.9.7 to 2.10.6 i get this error in the
event log:

2008-05-24T09:31:32 ERROR Zope.SiteErrorLog http://myurl/error_log/manage_main
Traceback (innermost last):
 Module ZPublisher.Publish, line 119, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 42, in call_object
 Module Shared.DC.Scripts.Bindings, line 313, in __call__
 Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
 Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
 Module Products.PageTemplates.PageTemplate, line 89, in pt_render
 Module zope.pagetemplate.pagetemplate, line 117, in pt_render
 Module zope.tal.talinterpreter, line 271, in __call__
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 379, in do_startEndTag
 Module zope.tal.talinterpreter, line 412, in do_startTag
TypeError: len() of unsized object


Looks as if the Zope 2.10 PageTemplate implementation made a big
step backward with respect to quality of traceback information :-((

Shane had added lots of "__traceback_info__" and  
"__traceback_supplement__"

declarations to the older code such that the tracebacks were
very informative
... unlike the traceback above.


Looking at the code of "do_startTag", I see that the problem is
with an attribute definition in a start tag.
Such an attribute definition should be evaluated into a sequence of  
strings

(or unicode strings).
The error happens because one of these sequence elements is
not a string, more precisely, it is something "len(...)" cannot be  
applied to.



Unfortunately, we would need to know the affected template,
the template line this problems occurs in (and its code)
and the attribute causing this problem.
It would be Zope's task to provide this information -- but as I have  
said:

it apparently made big steps backward with Zope 2.10


You could try to add

   __traceback_info__ = name, item, rendered, s

before line 412 of "zope/tal/talinterpreter.py".

The traceback would then tell us: the name of the tag ("name"),
the attribute definition ("item"), its evaluation ("rendered")
and the problematic element.

We still would not know which PageTemplate causes the problem (but
we might guess this).



--
Dieter



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

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


Re: [Zope] PageTemplates len() of unsized object

2008-05-24 Thread Giampiero Benvenuti

Thanks Andreas,

unfortunately, your advice to use Python debugger is way over my head.  
I'm a web designer, I can deal with Zope and python up to some level  
(medium/low?)...sometime with Zope even the level of knowledge of it  
is openable :-(


Thanks anyhow,

Giampiero


On May 24, 2008, at 11:52 AM, Andreas Jung wrote:




--On 24. Mai 2008 11:47:32 +0200 Giampiero Benvenuti <[EMAIL PROTECTED] 
> wrote:



Hello list,

after the upgrade from zope2.9.7 to 2.10.6 i get this error in the  
event

log:

2008-05-24T09:31:32 ERROR Zope.SiteErrorLog
http://myurl/error_log/manage_main
Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
  Module Products.PageTemplates.PageTemplate, line 89, in pt_render
  Module zope.pagetemplate.pagetemplate, line 117, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 379, in do_startEndTag
  Module zope.tal.talinterpreter, line 412, in do_startTag
TypeError: len() of unsized object


If I click on ZMI "error_log" i just get:

Error Type: TypeError
Error Value: len() of unsized object


You might take the Python debugger and figure out why
do_startTag() is failing. This might help us for providing a fix or  
a workaround. Without further information e.g. the related content  
of the template or the related tag failing here...there is little we  
can do - except guessing (I won't).


Andreas


___
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] PageTemplates len() of unsized object

2008-05-24 Thread Giampiero Benvenuti

Hello list,

after the upgrade from zope2.9.7 to 2.10.6 i get this error in the  
event log:


2008-05-24T09:31:32 ERROR Zope.SiteErrorLog http://myurl/error_log/manage_main
Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
  Module Products.PageTemplates.PageTemplate, line 89, in pt_render
  Module zope.pagetemplate.pagetemplate, line 117, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 379, in do_startEndTag
  Module zope.tal.talinterpreter, line 412, in do_startTag
TypeError: len() of unsized object


If I click on ZMI "error_log" i just get:

Error Type: TypeError
Error Value: len() of unsized object

Can someone explain to me what is going on?

Your help is very much appreciated.

Giampiero

___
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] ZpCron

2008-03-07 Thread Giampiero Benvenuti

Hello list,

can someone give me a good example about the sintax for the product  
ZpCron? ( http://www.zope.org/Members/janik/ZpCron )


It should be cron-like syntax:

1 * * * * Username /zope/path/to/script

So far I didn't have any success...

Thanks a lot,

Giampiero
___
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 Calendar Product?

2008-02-22 Thread Giampiero Benvenuti

Hi there,

I 'm using "Calendar Tag". It does work fine for my needs:

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

Ciao,


Giampiero


On Feb 22, 2008, at 6:20 AM, Cliff Ford wrote:


Hello friends,

I have been away from Zope for a while. I have a Zope 2.9.3  
installation (no CMS or Plone) for which someone has requested a  
Calendar application. From the Zope sites it is not clear whether  
any suitable product is available. Could anyone recommend something?  
Alternatively, might it be an idea to use a stand-alone Calendar  
application and plug it into an I-frame?


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