[Zope3-Users] Utility registration vanished after restart?

2007-01-02 Thread Florian Lindner
Hello,
I have two object that are registed in content space. The first one with the 
ZMI the other one programmatically with:

getSiteManager().registerUtility(self, INewsfeed, self.__name__)

both registration show up fine in the ZMI registration tab. But after a 
restart of Zope both object are unregistred again.
Is this behavior correct? Why that?

Thanks,

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


[Zope3-Users] zope.testbrowser and vhost

2007-01-02 Thread Dominique Lederer
hi!

i would like to use zope.testbrowser to test my vhosted site
http://localhost:8080/++skin++myskin/mysite/++vh++http:my.example.com:80/++/

i see there is a VirtualHostingBrowser class in
zope.testbrowser.testing, but i dont have a clue on how to use this.

any help would be nice.

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


Re: [Zope3-Users] zope.testbrowser and vhost

2007-01-02 Thread Benji York

Dominique Lederer wrote:

i see there is a VirtualHostingBrowser class in
zope.testbrowser.testing, but i dont have a clue on how to use this.


Use VirtualHostTestBrowserSuite instead of
unittest.TestSuite and the tests you add to the suite will be run twice: 
once normally and again in a virtual hosting environment.

--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] zope.testbrowser and vhost

2007-01-02 Thread Gary Poster


On Jan 2, 2007, at 2:29 PM, Benji York wrote:


Dominique Lederer wrote:

i see there is a VirtualHostingBrowser class in
zope.testbrowser.testing, but i dont have a clue on how to use this.


Use VirtualHostTestBrowserSuite instead of
unittest.TestSuite and the tests you add to the suite will be run  
twice: once normally and again in a virtual hosting environment.


Right now it doesn't have the flexibility to do what it sounds like  
you want (i.e., insert a skin).  Some small adjustments could  
probably make it possible.  As long as the default behavior doesn't  
change I think it would be fine.


mea culpa for the lack of docs and tests.  They are welcome.

Gary


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


Re: [Zope3-Users] default text for dropdown widget empty selection

2007-01-02 Thread Dennis Schulz
You can override the setupWidgets() method of your formlib class and 
write something like this. (assuming that project is your dropdown field 
and your view is called MyAddingView)


def setUpWidgets(self, ignore_request=False):
   super(MyAddingView, 
self).setUpWidgets(ignore_request=ignore_request)

   self.widgets['project']._messageNoValue = (no project)


The thing that bothers me is that once you assign a value it is not 
possible to set it back to no value.

Anyone knows how to fix this?


Dennis



Roy Mathew escribió:

Hi Folks,

Currently, the builtin dropdown widgets show the string '(no value)'
as the empty default. Is it possible to show different text in its
place?

  



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