I've rarely found that to be the right thing to do, but sometimes...  Users 
expect the default to be "base_view".  

Mirto: <<view>> is deprecated (or even, iirc, non-functional) as a 
stereotype on a content-class method (operation).  That's afaict to decouple 
the concepts of actions and views.  So you create a <<view_class>>, depend 
on a content class, and then the view is available at context/@@view_class.  
If you want to create tabs, you add an "operation" to the content class with 
a stereotype of <<action>>, and a url of "string:${object_url}/@@view_class" 
(or perhaps AGX fills in the 'string:' part - istr it does).
-- 
derek

Roijen, Bas wrote:

> Set the tagged value "default_view" on your contenttype class to the
> name of the custum view you created.
> 
> 
> Kind regards,
> 
> bc. Bas Roijen
> Technisch Applicatiebeheerder
> COFELY EXPERTS BV
> Information & Communication Technology
> GDF SUEZ ENERGY SERVICES
> 
> Amerikalaan 35, 6199 AE Maastricht-Airport - THE NETHERLANDS
> PO Box 304, 6199 ZN Maastricht-Airport - THE NETHERLANDS
> Tel. : +31 (0)43 367 52 09
> Fax. : +31 (0)43 367 59 90
> Mob. : +31 (0)6 388 260 15
> [email protected]
> www.cofely-gdfsuez.nl
> 
> 
> -----Oorspronkelijk bericht-----
> Van: [email protected]
> [mailto:product-developers-bounces-
[email protected]]
> [Namens Mirto Silvio
> Busico
> Verzonden: donderdag 11 maart 2010 13:07
> Aan: [email protected]
> Onderwerp: [Product-Developers] archgenxml: how to create a custom
> view?[resuming an old thread]
> 
> Hi all,
> after a long period, I started again to try to develop (really it is a
> Plone 2.5 migration) a product for Plone 3.3.4
> 
> The last time I asked the list I received the message below; but I'm
> still confused.
> 
> I read the agx docs at
> http://plone.org/documentation/manual/developer-manual/using-archgenxml
> but I cannot figure out how to create a custom view.
> I added a "browser" module with inside a class with "<<view_class>>
> stereotype but I don't know how to correlate this class with the one
> that should have this custom view.
> 
> Searching and googling gives a lot of links to obsolete agx 1
> documentation and I was not able to find any link relevant to my
> problem.
> 
> Please, can anyone point me to the rigth documentation?
> BTW anyone have a demo zargo file related to a product with custom
> views?
> 
> Thanks
>     Mirto
> 
> 
> ================== old thread
> message==========================================================self
> Kees Hink ha scritto:
>> If you add a 'MyView' object with a '<<view_class>>' stereotype in
>> your UML's 'browser' module, AGX will generate 'browser/MyView.py' and
> 
>> 'browser/templates/MyView.pt' for you.
>>
>> Mirto Silvio Busico wrote:
>>   
>>> Hi all,
>>>
>>> I'm developing a product with archgenxml, but I'm a little confused.
>>>
>>> I've defined some classes and now I'm trying to define custom views.
>>>
>>> In the old plone 2.5 days I defined a method for the class with the
>>> archetype <<view>> and put a pt file named as the method name in the
>>> skin/product directory.
>>>
>>> Now archgenxml says <<view>> is deprecated.
>>> I tried a method with the archetype <<action>> and the tag "view"
>>> with value "view", but I only obtained an action tab with the method
>>> name and no placeholder pt.
>>>
>>> How can I define custom views?
>>>
>>> Thanks
>>>    Mirto
>>>
>>> _______________________________________________
>>> Product-Developers mailing list
>>> Product-Developers-G3yHMj00SlOLbbK5bonKug-
[email protected]
>>> http://lists.plone.org/mailman/listinfo/product-developers
>>>     
>>
>> _______________________________________________
>> Product-Developers mailing list
>> [email protected]
>> http://lists.plone.org/mailman/listinfo/product-developers
>>
>>   
> 
> ================================================
> De informatie opgenomen in dit bericht kan vertrouwelijk zijn en
> is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht
> onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en
> de afzender direct te informeren door het bericht te retourneren.
> ================================================
> The information contained in this message may be confidential
> and is intended to be exclusively for the addressee. Should you
> receive this message unintentionally, please do not use the contents
> herein and notify the sender immediately by return e-mail.
> ================================================

-- 
derek


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to