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 )


Re: [Zope] Product CalendarTag on zope2.13.19

2013-03-27 Thread johannes raggam
-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 Tres Seaver
-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] 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 )