Re: [Zope3-Users] label customisation

2013-07-19 Thread Simon Elbaz
It's not the most elegant way but it does the job:

def updateWidgets(self):
super(StepAddForm, self).updateWidgets()
AddAction = button.StaticButtonActionAttribute(
u'Add Action',
button=self.widgets['o_action_list'].buttons['add'])
zope.component.provideAdapter(factory=AddAction, name='title')
super(StepAddForm, self).updateWidgets()


where o_action_list is the zope.schema.List field.

I have to call super(StepAddForm, self).updateWidgets() because
self.widgets is not avalaible before the call.

Regards,
Simon


On Sun, Jul 14, 2013 at 3:12 AM, Simon Elbaz elbazsim...@gmail.com wrote:

 Hi,

 In the z3c.form.AddForm, zope.schema.List field is rendered with
 Add/Delete buttons.

 How to customize those labels ?

 My code does not have any effect:
 AddAction = button.StaticButtonActionAttribute(
 u'Add Action', button=multi.MultiWidget.buttons['add'],
 form=StepAddForm)

 Thanks for your help
 Simon Elbaz

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


[Zope3-Users] Installation problems with ztfy.webapp on fresh baked gentoo!

2013-07-19 Thread Tamer Higazi
Hi peeople!
I sent by mistake this question to the zope2 Mailinglist, and I hope you 
forgive me. I have this problem:

I am trying to install zope3 /ztfy webapp, and I face quickly a problem
by running python bootstrap.py after application setup. Here the problem:

README.txt  bootstrap.py  buildout.cfg  debug.ini  deploy.ini  etc 
extends-cache  setup.py  src  var
tamer@tux /storage/PyProjects/ztfyAPP $ python bootstrap.py
Traceback (most recent call last):
  File bootstrap.py, line 111, in module
ws.find(pkg_resources.Requirement.parse(requirement)).location
AttributeError: 'NoneType' object has no attribute 'location'

This problem appears if I try to setup bluebream or a ztfy project and I am not 
getting smart. what could it be?! 

I already spoke with somebody who had the same problem. He installed 
zc.builout globally, and it was solved for him but not me.

My problem still exist even after installing through easy_install zc.buildout 
globally.

Any ideas what it could be?!



For any help I would kindly thank you




Tamer

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


Re: [Zope3-Users] Installation problems with ztfy.webapp on fresh baked gentoo!

2013-07-19 Thread Thierry Florac

Hi,

Le Fri, 19 Jul 2013 23:43:54 +0200,
  Tamer Higazi th9...@googlemail.com a écrit:

 Hi peeople!
 I sent by mistake this question to the zope2 Mailinglist, and I hope
 you forgive me. I have this problem:
 
 I am trying to install zope3 /ztfy webapp, and I face quickly a
 problem by running python bootstrap.py after application setup.
 Here the problem:
 
 README.txt  bootstrap.py  buildout.cfg  debug.ini  deploy.ini  etc 
 extends-cache  setup.py  src  var
 tamer@tux /storage/PyProjects/ztfyAPP $ python bootstrap.py
 Traceback (most recent call last):
   File bootstrap.py, line 111, in module
 ws.find(pkg_resources.Requirement.parse(requirement)).location
 AttributeError: 'NoneType' object has no attribute 'location'
 
 This problem appears if I try to setup bluebream or a ztfy project
 and I am not getting smart. what could it be?! 
 
 I already spoke with somebody who had the same problem. He installed
 zc.builout globally, and it was solved for him but not me.
 
 My problem still exist even after installing through easy_install
 zc.buildout globally.
 
 Any ideas what it could be?!
 
 For any help I would kindly thank you


I don't think that this problem is strictly related to ZTFY packages.

Which Python version do you use ? On what operating system ??
I'm the creator and maintainer of all ZTFY packages, which are actually
only compatible with Python 2.6 and 2.7.

Regards,
Thierry
___
Zope3-users mailing list
Zope3-users@zope.org
https://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Installation problems with ztfy.webapp on fresh baked gentoo!

2013-07-19 Thread Tamer Higazi
Hi Thierry!

I believe also that it is not related to ztfy packages, because the same
result is being displayed with bluebream as well.

I am using Python 2.7.5 on Gentoo Linux 64 Bit.



Regards



Tamer

 
 I don't think that this problem is strictly related to ZTFY packages.
 
 Which Python version do you use ? On what operating system ??
 I'm the creator and maintainer of all ZTFY packages, which are actually
 only compatible with Python 2.6 and 2.7.
 
 Regards,
 Thierry
 

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


Re: [Zope3-Users] Installation problems with ztfy.webapp on fresh baked gentoo!

2013-07-19 Thread Thierry Florac

Hi,

Le Sat, 20 Jul 2013 01:09:50 +0200,
  Tamer Higazi th9...@googlemail.com a écrit:

 I believe also that it is not related to ztfy packages, because the
 same result is being displayed with bluebream as well.
 
 I am using Python 2.7.5 on Gentoo Linux 64 Bit.

I already had a few installation problem with zc.buildout in release
2.x.
Can you try to install release 1.5.2 of zc.buildout ?
(easy_install zc.buildout==1.5.2)


Regards,
Thierry
___
Zope3-users mailing list
Zope3-users@zope.org
https://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Installation problems with ztfy.webapp on fresh baked gentoo!

2013-07-19 Thread Tamer Higazi
Same result as before.

I tried it globally as well as in a virtualenv



Tamer


On 07/20/13 01:19, Thierry Florac wrote:
 
 Hi,
 
 Le Sat, 20 Jul 2013 01:09:50 +0200,
   Tamer Higazi th9...@googlemail.com a écrit:
 
 I believe also that it is not related to ztfy packages, because the
 same result is being displayed with bluebream as well.

 I am using Python 2.7.5 on Gentoo Linux 64 Bit.
 
 I already had a few installation problem with zc.buildout in release
 2.x.
 Can you try to install release 1.5.2 of zc.buildout ?
 (easy_install zc.buildout==1.5.2)
 
 
 Regards,
 Thierry
 

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


[Zope3-Users] BlueBream Vs ZTFY

2013-07-19 Thread Christopher Lozinski

The question on the zope mailing list was why are we installing ztfy
rather than bluebream.

But if you take a look at the pypi page

https://pypi.python.org/pypi/bluebream

The most recent release is from Jan 2011.  So much better to start with
the new releases of ztfy.  We get new releases every month or so. 

And so here are the ztfy installation instructions.

http://wiki.ztfy.org/InstallationInstructions

And here are the bluebream installation instructions.

http://bluebream.zope.org/doc/1.0/gettingstarted.html#installation

Regards
Chris



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