Re: [Zope3-Users] Lovely Zope3 Taming
Dear Jodok, can you also propose some accommodation for this event? On 9/14/07, Jodok Batlogg [EMAIL PROTECTED] wrote: Even Girls can learn it! Your Trainer is wolf famous Zope Tamer Philipp von Weitershausen. September 19th - 21st (that's soon!) for more information: http://www.lovelysystems.com/batlogg/2007/09/14/ lovely-zope3-taming/ cheers Jodok -- Beautiful is better than ugly. -- The Zen of Python, by Tim Peters Jodok Batlogg, Lovely Systems Schmelzhütterstraße 26a, 6850 Dornbirn, Austria phone: +43 5572 908060, fax: +43 5572 908060-77 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] still filter in addmenuitem
sorry for attaching files, but in this way may be it will be more clear. on the Type object.gif you can see that Article can be added to Type objects. on the Article object.gif you can see that nothing can be added to an Article object (manually). that's why i use the filter, but the Add menu point is still visible (rounded with read drawing). and if you click on it you can see on the article add.gif the screen. to complete the whole story Article can contain other Article objects, only the manual adding needs to be disabled. On 4/4/07, Christophe Combelles [EMAIL PROTECTED] wrote: I don't really understand, do you want to hide the full Add menu, or just the menu entry for your content object? Remember you can also filter the menu entry by interface and not only with the filter. (btw I've never used this filter yet) Christophe Ivan Horvath a écrit : Dear All, as i wrote in one of my previous e-mail i use filter property in addMenuItem directive. filter = context/context/isNeedtoDisplay | nothing the add menu (below the navigation tree) is not displaying for the certain object, but there is an Add menu in zmi_actions menu bar. when i click on it it displays an empty textbox to create an object. how can i disappear it? or is it a bug? Ivan ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users Type object.gif Description: GIF image Article object.gif Description: GIF image article add.gif Description: GIF image ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] using filter in addMenuItem
Dear All, it seems that i have to use filter attribute in browser:addMenuItem directive. i couldn't find any usable help how to use it, and my trials are failed so far. this is the menu declaration in zcml: browser:addMenuItem title=Article factory=fa.Article view=addArticle.html filter=context/isNeedtoDisplay permission=zope.ManageContent / browser:page for=zope.app.container.interfaces.IAdding name=addArticle.html class=.helper.ArticleAddForm permission=zope.ManageContent / i receive always a TraversalError exception. i don't know where shall i put the isNeedtoDisplay method. File D:\alco\zope\src\zope\traversing\adapters.py, line 52, in traverse raise TraversalError(subject, name) - __traceback_info__: (zope.app.publisher.browser.viewmeta.+ object at 0x02D E9D90, 'isNeedtoDisplay', []) TraversalError: (zope.app.publisher.browser.viewmeta.+ object at 0x02DE9D90, ' isNeedtoDisplay') thanks in advance Ivan ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] no Add menu in custom container view
Dear Frank, Mats, thank you for your helpful answers. after adding the add attribute for the containerViews i have the add menu for the type category unfortunately this information i couldn't find in any documentation :-( On 3/24/07, FB [EMAIL PROTECTED] wrote: On Fri, Mar 23, 2007 at 03:27:31PM +0100, Ivan Horvath wrote: Dear All, i'm rather new to zope3, thus knowing more and more, but still i have many problems. first i displayed the container contents with the very fast solution containerViews in browser/zcml it was nice, i have everything what i need, of course i could Add new object in the container, because i had an Add menu. browser:addMenuItem title=Type Category factory=fa.TypeCategory view=addTypeCategory.html permission=zope.ManageContent / browser:page for=zope.app.container.interfaces.IAdding name=addTypeCategory.html class=.helper.TypeCategoryAddForm permission=zope.ManageContent / i had to create a customized contents view page, so created a new view object. it is inhertied from BrowserView. this is the page declaration in zcml: browser:page for=..interfaces.ITypeCategoryContainer name=index.html class=.helper.TypeCategoryContainerView permission=zope.View template=list.pt menu=zmi_views title=List / for the display of the contents i use zc.table solution the problem is here, because the nice Add menu is disappeared. what can be the problem? You can include the menu for adding subobjects like that: div tal:replace=structure context/@@commonTasks / Don't forget to provide an adding-view for your container like this: containerViews add=zope.ManageContent / Regards, Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] no Add menu in custom container view
Dear All, i'm rather new to zope3, thus knowing more and more, but still i have many problems. first i displayed the container contents with the very fast solution containerViews in browser/zcml it was nice, i have everything what i need, of course i could Add new object in the container, because i had an Add menu. browser:addMenuItem title=Type Category factory=fa.TypeCategory view=addTypeCategory.html permission=zope.ManageContent / browser:page for=zope.app.container.interfaces.IAdding name=addTypeCategory.html class=.helper.TypeCategoryAddForm permission=zope.ManageContent / i had to create a customized contents view page, so created a new view object. it is inhertied from BrowserView. this is the page declaration in zcml: browser:page for=..interfaces.ITypeCategoryContainer name=index.html class=.helper.TypeCategoryContainerView permission=zope.View template=list.pt menu=zmi_views title=List / for the display of the contents i use zc.table solution the problem is here, because the nice Add menu is disappeared. what can be the problem? thank you in advance Ivan ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] correct display of Text field in a view
Darryl, Frank, thank you your answers, but finally i keep the widget solution instead of TextAreaWidget i inherited my widget from DisplayWidget, and of course used your replace solution. class IMultiLineText(IText): this field will be used for the comment because of the correct display of html tags pass class MultiLineText(Text): the field implementation implements(IMultiLineText) class MultiLineTextWidget(DisplayWidget): the widget to display the description def __call__(self): return super(MultiLineTextWidget, self).__call__().replace(\n,br \) Darryl Cousins wrote: On Fri, 2007-03-09 at 10:06 +0100, Ivan Horvath wrote: - modify the description widget data with PlainTextToHTMLRenderer.render(), but then in the browser i can see only encoded chars instead of br Hi, As for Frank's suggestion try: p tal:content=structure view/description / when rendering the text2html content. That should allow the html tags through. Regards, Darryl -- Best Regards, Iván Horváth Chief Programmer /Anyone who has never made a mistake has never tried anything new./ / /Albert Einstein/ / ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] object hierarchy
Dear All, i'm really new to zope, but i have learning application, where the object stru is little bit complex. App | + Categories | +--Categ1 | +Type1 | +-Article1 | +--Article2 +-Type2 +--Categ2 +- Administration etc i could manage the administration part and in the categories container i can add new category objects. but i cannot add into a category object a type container. i don't really know how to define an interface which is contained and container too. thanks in advance Ivan ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] object hierarchy
Dear Frank, i think i did something similar first to define the category container, and contained and this is working fine, i can add new category objects into the category container. i have problem with the next level, whereas the category, which is contained from the category point of view, but it is a container from the type point of view. how can i define this ? On 3/14/07, FB [EMAIL PROTECTED] wrote: On Wed, Mar 14, 2007 at 04:35:53PM +0100, Ivan Horvath wrote: Dear All, i'm really new to zope, but i have learning application, where the object stru is little bit complex. App | + Categories | +--Categ1 | +Type1 | +-Article1 | +--Article2 +-Type2 +--Categ2 +- Administration etc i could manage the administration part and in the categories container i can add new category objects. but i cannot add into a category object a type container. i don't really know how to define an interface which is contained and container too. I'm not sure, if I understand your problem correctly. It's possible to define a set of valid subobjects for each interface: class IType(IContainer): pass class ICategory(IContainer): contains(IType) class ICategoryContainer(IContainer): contains(IType) [...] class Type(BTreeContainer): implements(IType) class Category(BTreeContainer): implements(ICategory) class CategoryContainer(BTreeContainer): implements(ICategoryContainer) There's nothing special about those kind of constraint-trees. Now I'm guessing: did you forget to specify a browser:containerViews and a browser:addMenuItem ZCML-directive per class? Regards, Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] correct display of Text field in a view
Dear All, in my learning application there is a description property this is declared as Text field in the schema of course an enter (newline) can be entered in this field, but on the view page i can see only raw text the viewpage class is inherited from DisplayForm i've tried already some things: - modify the description widget data with PlainTextToHTMLRenderer.render(), but then in the browser i can see only encoded chars instead of br - i've tried to create a new widget (following Zope3 Developer's Book 15. chapter), then i received a textarea html element in the view as well - of course i could modify the value, of course i cannot save the best would be on the view page a simple html (just texts) taking into cosideration the new line chars. any idea? -- Best Regards, Iván Horváth /Anyone who has never made a mistake has never tried anything new./ / /Albert Einstein/ / ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] css question
Title: Ivn Horvth Hi Roger, i've downloaded the package, tried to modify the css file according to readme.txt, but something i miss i receive the folllowing exception: TypeError: ('Could not adapt', zc.resourcelibrary.publication.Request instance URL="" class="moz-txt-link-freetext" href="http://localhost:8080/ap_test/@@/++resource++">http://localhost:8080/ap_test/@@/++resource++, InterfaceClass zope.app.rot terdam.Rotterdam) this is my css file: /* zrt-replace: "img" "++resource++/img" */ .tabs { position:relative; height: 27px; margin: 0px; padding: 0px; background:url("img/bar_off.gif") repeat-x; overflow:hidden } this is my configure.zcml file: zrt-resource name="tabbed_style.css" file="tabbed_style.css" / resource name="bar_on.gif" file="img/bar_on.gif"/ resource name="bar_off.gif" file="img/bar_off.gif"/ can you help me what i made wrong? Roger Ineichen wrote: Hi Ivan Subject: [Zope3-Users] css question Dear All, i would like to use a tabbed display on my view. there are different background gifs for the selected tab and for the not selected tabs. the positioning and changing/displaying tab contents is working, but the background display gifs are not loaded. please give me a hint how i have to define them Please use z3c.zrtresource for build url path in CSS files. Samples are included in the README.txt in the package. With zrtresource you can write url references as CSS comments which lokks like: - /* zrt-replace: "../img" "++resource++/img" */ h1 { color: red; background: url('../img/mybackground.gif'); } - You can find z3c.zrtresource at: svn://svn.zope.org/repos/main/z3c.zrtresource Regards Roger Ineichen Best Regards, Ivn Horvth Chief Programmer -- Best Regards, Ivn Horvth Chief Programmer Alcatel NSD PMS 2000 Product Team H-1116, Budapest Kondorfa u. 10. Tel.: +36 1 209 9546 Fax.: +36 1 209 9599 Mobil: +36 30 257 0235 E-mail: [EMAIL PROTECTED] Check my Web Page Anyone who has never made a mistake has never tried anything new. /Albert Einstein/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] css question
Title: Ivn Horvth yes zc.resourcelibrary-configure.zcml, zc.resourcelibrary-meta.zcml files i have, ftesting not, but i assume it is not necessary for functioning. Maciej Wisniowski wrote: i've downloaded the package, tried to modify the css file according to readme.txt, but something i miss i receive the folllowing exception: TypeError: ('Could not adapt', zc.resourcelibrary.publication.Request instance URL="" class="moz-txt-link-freetext" href="http://localhost:8080/ap_test/@@/++resource++">http://localhost:8080/ap_test/@@/++resource++, InterfaceClass zope.app.rot terdam.Rotterdam) Have you copied: zc.resourcelibrary-configure.zcml, zc.resourcelibrary-ftesting.zcml, zc.resourcelibrary-meta.zcml into your zope-instance/etc/package-includes ? -- Best Regards, Ivn Horvth Chief Programmer Alcatel NSD PMS 2000 Product Team H-1116, Budapest Kondorfa u. 10. Tel.: +36 1 209 9546 Fax.: +36 1 209 9599 Mobil: +36 30 257 0235 E-mail: [EMAIL PROTECTED] Check my Web Page Anyone who has never made a mistake has never tried anything new. /Albert Einstein/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] win32 setup
Dear All, i've downloaded the latest zope version (http://www.zope.org/Products/Zope3/3.3.0/Zope-3.3.0.win32-py2.4.exe). how can i customize the installation path? because it is installed on the site_packages folder in python/lib folder. i would prefer to put the complete zope package in a different folder outside python, because in this way i can manage the update more precisely. -- Best Regards, Iván Horváth Chief Programmer Alcatel NSD PMS 2000 Product Team H-1116, Budapest Kondorfa u. 10. Tel.: +36 1 209 9546 Fax.: +36 1 209 9599 Mobil: +36 30 257 0235 E-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Check my Web Page http://www.freeweb.hu/pillesoft /Anyone who has never made a mistake has never tried anything new./ / /Albert Einstein/ / ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] objectwidget help
Dear All, in my implementation there is an object. one of this object properties is a List. containing other objects. the class which inherits ObjectWidget receives always the same context, actually that object which contains the object property. class MyDispFieldsWidgetDisplay(ObjectWidget): i cannot find the way how to tell to MyDispFieldsWidgetDisplay object which element should read from the List object property this is my viewclass: class DKRviewReportView(myBrowserView): - myBrowserView is almost the same as the zope BrowserView class fields_widget = CustomWidgetFactory(SequenceDisplayTableWidget, subwidget=MyDispFieldsWidgetDisplay) -- Best Regards, Iván Horváth Chief Programmer Alcatel NSD PMS 2000 Product Team H-1116, Budapest Kondorfa u. 10. Tel.: +36 1 209 9546 Fax.: +36 1 209 9599 Mobil: +36 30 257 0235 E-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Check my Web Page http://www.freeweb.hu/pillesoft /Anyone who has never made a mistake has never tried anything new./ / /Albert Einstein/ / ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] objectwidget help
Title: Iván Horváth thank you Tom! i downloaded, but unfortunately i cannot see it in my browser. what is the url for the otherdemos objectsofobject2 package? Tom Gross wrote: Hi Ivan, I might be wrong, but I think there's an example for listwidgets containing objects in the zope3demos-package: http://code.google.com/p/zope3demos/ Maybe it helps. Cheers -Tom Ivan Horvath wrote: Dear All, in my implementation there is an object. one of this object properties is a List. containing other objects. the class which inherits ObjectWidget receives always the same context, actually that object which contains the object property. class MyDispFieldsWidgetDisplay(ObjectWidget): i cannot find the way how to tell to MyDispFieldsWidgetDisplay object which element should read from the List object property this is my viewclass: class DKRviewReportView(myBrowserView): - myBrowserView is almost the same as the zope BrowserView class fields_widget = CustomWidgetFactory(SequenceDisplayTableWidget, subwidget=MyDispFieldsWidgetDisplay) -- Best Regards, Iván Horváth Chief Programmer Alcatel NSD PMS 2000 Product Team H-1116, Budapest Kondorfa u. 10. Tel.: +36 1 209 9546 Fax.: +36 1 209 9599 Mobil: +36 30 257 0235 E-mail: [EMAIL PROTECTED] Check my Web Page Anyone who has never made a mistake has never tried anything new. /Albert Einstein/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] css question
Dear All, i would like to use a tabbed display on my view. there are different background gifs for the selected tab and for the not selected tabs. the positioning and changing/displaying tab contents is working, but the background display gifs are not loaded. please give me a hint how i have to define them this is the definition in the pt file inside metal:block fill-slot=headers tag style type=text/css media=all tal:content=string:@import url(${context/++resource++tabbed_style.css}); @import url(tabbed_style.css); /style this is the css file: .tabs { position:relative; height: 27px; margin: 0px; padding: 0px; background:url(img/bar_off.gif) repeat-x; overflow:hidden } .tabs li { display:inline; } .tabs a:hover, .tabs a.tab-active { background:#fff url(img/bar_on.gif) repeat-x; border-right: 1px solid #fff } .tabs a { height: 27px; font:12px verdana, helvetica, sans-serif; font-weight:bold; position:relative; padding:5px 10px 10px 10px; margin: 0px -4px 0px 0px; color:#2B4353; text-decoration:none; border-left:1px solid #fff; border-right:1px solid #6D99B6; } .tab-container { background: #fff; border:1px solid #6D99B6; } .tab-panes { margin: 3px; } -- Best Regards, Iván Horváth Chief Programmer Alcatel NSD PMS 2000 Product Team H-1116, Budapest Kondorfa u. 10. Tel.: +36 1 209 9546 Fax.: +36 1 209 9599 Mobil: +36 30 257 0235 E-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Check my Web Page http://www.freeweb.hu/pillesoft /Anyone who has never made a mistake has never tried anything new./ / /Albert Einstein/ / ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re[2]: [Zope3-Users] filter possibilities
Dear Martijn, thank you for your answer. the query.Text (TextIndex) search is working now but i miss the query.NotText - i mean to search for NOT a value how this could be possible? *** REPLY SEPARATOR *** On 26/09/2006 at 16:32 Martijn Faassen wrote: Ivan Horvath wrote: Dear All, i have to provide some filter function in our system. i've checked the hurry.query solution e.g. obj1.property = As Built Documentation obj2.property = Planning Documentation obj3.property = As Built Drawing i would like to filter my objects in the following ways: filter for substring. when i make a filter for this property with the following expr.: As Built i would like to get obj1, obj3 back as result how is it possible? query.Eq or AnyOf doesn't give back anything. You may want to look at hurry.query.Text. If you index something using a full text index (from zope.app.catalog.text import TextIndex) you can do such partial matching. This does presume you do have the intids and catalog all set up in your own code. Does hurry.query.Eq work when you feed it a complete text, such as As Built Documentation? It may also be that you want to reorganize your objects slightly so that you have *two* fields, one 'As Built' and one 'Document' or 'Drawing'. It could be that you're trying to put information into one field that really should be in multiple fields. If you do that, you can use the Field index and query.Eq. Good luck! Regards, Martijn Best regards, Ivan Horvath Chief Programmer Alcatel ISD PMS 2000 Product Team H-1116, Budapest Kondorfa u. 10. Tel.: +36 1 209 9546 Fax.: +36 1 209 9599 Mobil: +36 30 257 0235 VOIP: +49 511 676 478010 [EMAIL PROTECTED] Anyone who has never made a mistake has never tried anything new. /Albert Einstein/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re[2]: [Zope3-Users] filter possibilities
thank you Chris, at least you've answered ... but yesterday i've spent all my day to figure out how the hurry.query works without success - may be that was the reason if i was a little bit ironic - sorry for that unfortunatelly i don't know too much about zope, but i would like to learn its capabilities i really don't know how to raise my question in a different way, i think i was specific enough i'm still waiting for a hint ... *** REPLY SEPARATOR *** On 26/09/2006 at 11:00 Chris Withers wrote: Ivan Horvath wrote: Is there anybody out there? Plenty. why haven't i received any answer? Because no one understood the question, or maybe no one knew the answer, or just maybe nobody had time or nobody felt like it... i thought this list is to raise question if i don't know something, Sure :-) and i need some help to continue my work with Zope3 That's okay, but this is a volunteer list, if you need stuff to be done and you're not getting answers, hire a Zope 3 consultant... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk Best regards, Ivan Horvath Chief Programmer Alcatel ISD PMS 2000 Product Team H-1116, Budapest Kondorfa u. 10. Tel.: +36 1 209 9546 Fax.: +36 1 209 9599 Mobil: +36 30 257 0235 VOIP: +49 511 676 478010 [EMAIL PROTECTED] Anyone who has never made a mistake has never tried anything new. /Albert Einstein/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] filter possibilities
Best regards, Ivan Horvath Chief ProgrammerAlcatel ISDPMS 2000 Product TeamH-1116, BudapestKondorfa u. 10.Tel.: +36 1 209 9546Fax.: +36 1 209 9599Mobil: +36 30 257 0235VOIP: +49 511 676 478010[EMAIL PROTECTED]Anyone who has never made a mistake has never tried anything new./Albert Einstein/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users