archgenxml: how to create a cutom view?

3 messages Options
Embed this post
Permalink
Mirto Silvio Busico-2 () archgenxml: how to create a cutom view?
Reply Threaded More More options
Print post
Permalink
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


[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Kees Hink () Re: archgenxml: how to create a cutom view?
Reply Threaded More More options
Print post
Permalink
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
> [hidden email]
> http://lists.plone.org/mailman/listinfo/product-developers

_______________________________________________
Product-Developers mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/product-developers
Mirto Silvio Busico-2 () Re: Re: archgenxml: how to create a cutom view?
Reply Threaded More More options
Print post
Permalink
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.
>  
Thanks.
How have I to connect the new object to the object class (global
containment, strict containment o refrence)?
I was not able to find it in
http://plone.org/documentation/manual/archgenxml2

Again thanks
    Mirto

> 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
>> [hidden email]
>> http://lists.plone.org/mailman/listinfo/product-developers
>>    
>
> _______________________________________________
> Product-Developers mailing list
> [hidden email]
> http://lists.plone.org/mailman/listinfo/product-developers
>
>  

[mirtosilvio_busico.vcf]

begin:vcard
fn:Mirto Silvio Busico
n:Busico;Mirto Silvio
org:Busico Mirto Silvio
adr:;;Via Casiglion De' Pepoli 84;Roma;RM;00127;Italia
email;internet:[hidden email]
title:Dr.
tel;work:+39 333 4562651
tel;cell:+39 333 4562651
x-mozilla-html:TRUE
version:2.1
end:vcard



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