Re: [Zope3-Users] Internationalization and Javascript

2005-07-09 Thread Fred Drake
On 7/9/05, Santi Camps <[EMAIL PROTECTED]> wrote:
> I'm not able to find any way to internationalize this alert message.
> Anybody knows some way to do it ?

I haven't tried this myself, but you should be able to put the message
in an HTML element that is hidden by the CSS, and internationalize
that (by calling zope.i18n.translate() before inserting it into the
generated HTML).  The JavaScript would then look for the HTML element
(by id or a class and relative location to the input element; whatever
works), and use that for the alert.

A little tedious, but not too bad for JavaScript, and your message
catalogs could be used to support whatever languages you care about
with further impacting the widget or application code.


  -Fred

-- 
Fred L. Drake, Jr.
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Internationalization and Javascript

2005-07-09 Thread Santi Camps

Hi all,

I've just made my first widget customization in Z3 and I've a doubt 
about internationalization.I've customized a widget for Float fields 
that validates, during the onchange javascript event, if the entered 
value is a valid float and, if not, shows an alert to the user.But 
I'm not able to find any way to internationalize this alert message.   
Anybody knows some way to do it ?


Thanks in advance

Santi Camps
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Installation Erros

2005-07-09 Thread Fred Drake
On 7/9/05, Tim Peters <[EMAIL PROTECTED]> wrote:
> While I doubt it matters, it's possible that some bug in gcc4 is
> creating actual problems.  Trying again with an earlier version of gcc
> would settle that question.  Since (AFAIK) nobody before mentioned the
> pile of new warnings gcc4 produces, it's possible you're the first to
> try Zope's C code under gcc4.

It may also be interesting to try with the version of GCC 4 that just
came out this week; GCC 4.0.1 came out on Thursday.  If there are any
GCC 4 bugs, those may have been fixed with that release.


  -Fred

-- 
Fred L. Drake, Jr.
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Re: [Zope3-dev] how to start zope3 on windows

2005-07-09 Thread E. Frerich



1. You have to decide in which  directory you want your Zope instance. For example: 
your instance is called "myinstance" under C: then you create a directory with this 
name (md c:\myinstance)


2. Change the actual directory to python24\Scripts (cd c:\programs\python24\Scripts)

3. Create the instance: C:\Programs\Python24\python mkzopeinstance -u : -d 
C:\myinstance

4. Change the actual directory to your instance directory
(cd C:\myinstance)


5. Start the Zope server: C:\Programs\Python24\python 
bin/runzope


6. Start your browser with http://localhost:8080


(If you start the browser with http://localhost:8080/manage you get the ZMI view after 
inputting your username and password for your Zope instance)
 
Egon




Am 9 Jul 2005 um 3:37 hat aaron wang geschrieben:


> I downloaded the zope3 package Zope-3.1.0b1.win32-py2.4.exe and
> installed it. but I don't know how to start it, anyone can help
> 
> newcomer
> 
> _
> Express yourself instantly with MSN Messenger! Download today it's
> FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> ___
> Zope3-dev mailing list
> Zope3-dev@zope.org
> Unsub:
> http://mail.zope.org/mailman/options/zope3-dev/e.frerich%40nord-com.ne
> t
> 



-- 
Egon Frerich, Freudenbergstr. 16, 28213 Bremen
[EMAIL PROTECTED]


-BEGIN PGP PUBLIC KEY BLOCK-
Version: PGP 8.0.2 - not licensed for commercial use: www.pgp.com


mQGiBDs+CBIRBADMQ48FueuJZARgmt21CshF3aPUNsdw7HCI1SDGCgDX+qqY6Kax
4+tjTsaW8borRZGDDm5Y7h4ybL+LBva3524HcS5GsUymH6iEe9b4zSuM9+070TlI
dlOR86qXqMCVzud2ltoQsvnKeg7mWiRVM+Fp38XWdr+OA04halG8V6dKBQCg/0NZ
UuMdbBO/+Bu6coPqLqrA3h8D/R2QCkPACTnzWOXFqQ2Vk1q8Om4fMwDrm48fLSPA
8n6oSJTSHC45k83hVRVQNeLdXEH/s21YrK6a7Bphhv+ka92yVWsjDZFGdlHN3/qi
V6YVsBFXiRWK9PubzRStegcZAPAW4k0Nw58hB7zgKXH49nHgiO8CFav0FLloNqsx
3UZhA/4zbJtHEUXFx0bSIe0QIDHay1QXL8IUazNWKxn9KLvuTeqB9PfEUE/WQnwJ
9pOFy8DBkcJz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bM+vP23a
=4snP
-END PGP PUBLIC KEY BLOCK-


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Installation Erros

2005-07-09 Thread Tim Peters
[Tim Cook]
> Installing Zope-3.1.0b1 on Fedora Core 4
>
> I didn't see these erros in any previous mailing list post nor did I
> find a bug collector.
> 
> 
> gcc (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8)

All the compilation warnings you got were due to using gcc4; they're
nuisance complaints, essentially complaining about that gcc4 itself
decides to treat an unqualified "char" declaration as if it were
"signed char".  This means you get a nuisance nag whenever C code
passes an "unsigned char *" to PyString_FromStringAndSize, which
declares its pointer-to-char argument as plain "char *", because
PyString_FromStringAndSize couldn't care less whether the box decides
to treat unqualifed char as signed or unsigned (C doesn't define which
they are -- it's the compiler's choice).

Adding a pile of annoying casting to the C code will make those
warnings go away, but they're not pointing out any real problems, so
ignore them.

> installed python version 2.3.5 prior to attempting install of Zope3.

[skipped a mass of nags about calls to PyString_FromStringAndSize]

> ..and the last several lines of 'make check'

This is the only interesting part.  It might help if you posted again,
skipping all the compiler warnings (which aren't interesting), and
gave the full output from `make check`.

While I doubt it matters, it's possible that some bug in gcc4 is
creating actual problems.  Trying again with an earlier version of gcc
would settle that question.  Since (AFAIK) nobody before mentioned the
pile of new warnings gcc4 produces, it's possible you're the first to
try Zope's C code under gcc4.
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Re: [Zope3-dev] (no subject)

2005-07-09 Thread Florian Lindner
Am Samstag, 9. Juli 2005 02:20 schrieb aaron wang:
> hi all,
> I am a newcomer to python & zope, I read some materials, and want to know
> wheather I could start on zope3 without experience on zope2. I want start
> on my learning by  constructing a small website, but I don't have right
> book/tutorial for reference.
>
> Thanks your reply in advance

Hi Aaron,
there are currently two books around. Stephans Zope3 book is more a reference 
guide. It is available both online and printed. The online version can be 
found at 
http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Book. 
But at the moment the printed version is much more recent that the online 
version.

Philipps book is more aimed toward beginners and available only printed. The 
homepage is http://worldcookery.com/.

A good starting point for all kinds of Zope3 documentation is 
http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Documentation.

BTW: This is the list for people developing Zope3, not for people developing 
_with_ Zope3.  ;-) zope3-users@zope.org would be more appropriate  for your 
question. (http://www.zope.org/Resources/MailingLists). I'm alos posting a 
follow up there.

Hope that helps,

Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users