Re: [Zope] help, installing ZJetDA-0.1.1..

2006-12-05 Thread Maciej Wisniowski

> Hi, I have copied the folder of the ZJetDA-0.1.1 product 
Have you seen how old ZJetDA is? I'm not surprised
it doesn't work with Zope2.10.
If you want to use this you'll possibly have to modify
it's code.

Better look for different database adapter. I think
that mxODBC might be best solution for you.

-- 
Maciej Wisniowski
___
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] MailHost with SSL

2006-12-05 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



- --On 5. Dezember 2006 22:18:09 +0100 Ferhat Ayaz 
<[EMAIL PROTECTED]> wrote:

> I've installed it. But there is no way to set user/password. At least I
> didn't found anyway.
>
>

We don't believe that. The API tells you clearly that the constructors 
accepts a username and a password. Triple check yourself.

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

iD8DBQFFdlQuCJIWIbr9KYwRAtM7AKCh8eUNgB1/6rauXeIXB4y8WqOfgQCfS4tF
62MPlv8vSqkoPjRk+/Ovn1c=
=9ik5
-END PGP SIGNATURE-

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


[Zope] help, installing ZJetDA-0.1.1..

2006-12-05 Thread [EMAIL PROTECTED]
Hi, I have copied the folder of the ZJetDA-0.1.1 product on the 
directory "C:\Zope\2.10,1 \ Zope \ lib \ python \ Products"  and 
restarted Zope. If I go in the Control panel -->Product management,  I 
can visualize it, but how can I use it? how to create an instance of it 
in my project…
Probably I didn't understand How to add a Product...
I hope in your aid….Thanks..


Naviga e telefona senza limiti con Tiscali 
Scopri le promozioni Tiscali adsl: navighi e telefoni senza canone Telecom

http://abbonati.tiscali.it/adsl/

___
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] MailHost with SSL

2006-12-05 Thread Ferhat Ayaz
I've installed it. But there is no way to set user/password. At least  
I didn't found anyway.



On Dec 5, 2006, at 10:15 PM, Andreas Jung wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



- --On 5. Dezember 2006 20:31:21 +0100 Ferhat Ayaz
<[EMAIL PROTECTED]> wrote:


Hello,

is it possible to connect a ssl crypted smtp server like  
googlemail with

MailHost?



Look at SecureMailHost which is part of Plone.

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

iD8DBQFFdeF2CJIWIbr9KYwRApnEAKCeUb6MRgpCAEP8pMDN6BVwfZbtRQCePSyd
kPP1MzfWm/HGRf0S8Go/DpQ=
=dHz5
-END PGP SIGNATURE-



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

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


Re: [Zope] MailHost with SSL

2006-12-05 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



- --On 5. Dezember 2006 20:31:21 +0100 Ferhat Ayaz 
<[EMAIL PROTECTED]> wrote:

> Hello,
>
> is it possible to connect a ssl crypted smtp server like googlemail with
> MailHost?
>
>
Look at SecureMailHost which is part of Plone.

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

iD8DBQFFdeF2CJIWIbr9KYwRApnEAKCeUb6MRgpCAEP8pMDN6BVwfZbtRQCePSyd
kPP1MzfWm/HGRf0S8Go/DpQ=
=dHz5
-END PGP SIGNATURE-

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


[Zope] MailHost with SSL

2006-12-05 Thread Ferhat Ayaz

Hello,

is it possible to connect a ssl crypted smtp server like googlemail  
with MailHost?


Thanks
Ferhat
___
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] want to learn ZPT

2006-12-05 Thread Chris Withers

Andreas Jung wrote:


ZPT is the way to go and ZPT is fair enough documented in three chapters:




It's also documented nicely in Philipp's Zope 3 book...

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Re: [Zope] want to learn ZPT

2006-12-05 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



- --On 5. Dezember 2006 02:44:36 -0800 Allen Huang <[EMAIL PROTECTED]> wrote:

> Hi.. I want to start learning ZPT since I heard from a lot of people that
> dtml is too outdated. Could anyone point me in the right direction? What
> should I starts on?


ZPT is the way to go and ZPT is fair enough documented in three chapters:



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

iD8DBQFFdU95CJIWIbr9KYwRArHeAJ4n7Si8dFqAFrlEbWLBJFA6ZwQjBACfbPAf
2RotOiqFwM2vLrFIZcjCOTo=
=t3RK
-END PGP SIGNATURE-

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


[Zope] want to learn ZPT

2006-12-05 Thread Allen Huang
Hi.. I want to start learning ZPT since I heard from a lot of people that dtml 
is too outdated. Could anyone point me in the right direction? What should I 
starts on?


 

Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited___
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] conditional python expresion inside ZPT

2006-12-05 Thread Maciej Wisniowski

> if (my_expresion):
> toreturn = a
> else:
> toreturn = b
>
> return toretun
Try:
tal:define="toreturn python: my_expression and a or b"

but you need to be aware that 'a' has to be logical True
in context of this statement (if a may be 0 or '' then this
may fail).

or
tal:define="toreturn python: test(my_expression,a, b)"

-- 
Maciej Wisniowski
___
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] conditional python expresion inside ZPT

2006-12-05 Thread Marco Bizzarri

What about putting the code snippet in a python script and then calling it
from ZPT?

Put it in a script like "mycondition", and then






Regards
Marco


On 12/5/06, Daniel de la Cuesta <[EMAIL PROTECTED]> wrote:


 Hello,

How can I insert a conditional python expresion inside a ZPT.

Example:

if (my_expresion):
toreturn = a
else:
toreturn = b

return toretun

Thank you!







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






--
Marco Bizzarri
http://iliveinpisa.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] AttributeError: LazyMap instance has no attribute '_product'

2006-12-05 Thread Peter Bengtsson



Dieter Maurer wrote:

Peter Bengtsson wrote at 2006-12-4 11:52 +:

...
  File "/home/peterbe/zope/zope288/Products/Mest/ProductPhotoBase.py", 
line 130, in _addProductPhoto

photo_adder = self.manage_addProduct['Photo'].manage_addPhoto
  File 
"/home/peterbe/zope/zope288/lib/python/App/FactoryDispatcher.py", line 
26, in __getitem__

return self.__bobo_traverse__(None, name)
  File 
"/home/peterbe/zope/zope288/lib/python/App/FactoryDispatcher.py", line 
29, in __bobo_traverse__

product=self.aq_acquire('_getProducts')()._product(name)
AttributeError: LazyMap instance has no attribute '_product'



Apparently, something at or above your "Collection" instance
defines a "_getProducts" -- as something to return a catalog search
result.

Now, "_getProducts" is assumed to be provided by the Zope application
object and not by any intermediate instance. As you see, Zope's
product accessing breaks when this requirement is violated.

Identify the "_getProducts" and rename it.

You're right!! I do. I have a method called exactly that which returns 
products as in purchasable products.


Thanks a million! You're a star!

--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.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] conditional python expresion inside ZPT

2006-12-05 Thread Daniel de la Cuesta
Hello,

How can I insert a conditional python expresion inside a ZPT.

Example:

if (my_expresion):
toreturn = a
else:
toreturn = b

return toretun

Thank you!






___
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] Has anyone generated barcodes output within DTML?

2006-12-05 Thread Chris Withers

[EMAIL PROTECTED] wrote:

It is a simple question, has anyone generated barcodes output within DTML? I am 
just starting to reseach this and I know there are different formats. I tried 
googling but I did not find this type of integration. My customer prints out a 
shipping manifest and work like to add the barcode on this paper output.


You really want to take a look at reportlab.

Generate your shipping manifest as a pdf. The reportlab barcode stuff is 
 really really good (he says, having just finished the first stage of a 
label-with-barcode generation app that just happens to be Zope 2 based ;-)


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 )