robert | 1 Apr 2003 07:29
Picon
Favicon

Re: How to register validators (...) for a new type

you have to register your validator.
You do this in portal_properties->form_properties
what action is called from a form you define in 
portal_properties->form_properties.
The form itself has to call itself as its action like this:
  <form class="group"
          name="edit_form"
          action="metadata_edit"
          method="post"
          tal:attributes="action python:here.portal_form_url(template.id)" >

and finally you have to have a hiiden field like this:
       <input type="hidden" name="form_submitted" value="1" 
tal:attributes="value template/id" />

HTH
robert

Am Montag, 31. März 2003 20:00 schrieb Gilles Lenfant:
> Hi,
>
> I'm creating my own Plone new types like I did with CMF.
> I can't see where I can register my own validators/error messages to keep
> in the same design rules as standard Plone objects.
>
> Any Hint or HowTo about this ?
>
> Thanks in advance !
>
> --Gilles
(Continue reading)

Geoff Davis | 1 Apr 2003 17:18

Re: How to register validators (...) for a new type

See http://plone.org/documentation/book/8 for more details

--

Geoff Davis
http://www.geoffdavis.net

"Gilles Lenfant" <gilles@...> wrote in
message news:033901c2f7af$5b1bef10$0801a8c0@...
> Hi,
>
> I'm creating my own Plone new types like I did with CMF.
> I can't see where I can register my own validators/error messages to keep
in
> the same design rules as standard Plone objects.
>
> Any Hint or HowTo about this ?
>
> Thanks in advance !
>
> --Gilles
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
(Continue reading)

Gilles Lenfant | 2 Apr 2003 18:39
Favicon

About factory_type_information

Hi,

I'm stuck with some details about factory_type_information in a CMF/Plone
Python Product.
Can someone tell me what's the subtile difference between the keys 'id',
'meta_type' and 'portal_type' ?

Many thanks in advance.

--Gilles

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
Andy McKay | 4 Apr 2003 16:08
Picon

Re: About factory_type_information

Gilles Lenfant wrote:
> Hi,
> 
> I'm stuck with some details about factory_type_information in a CMF/Plone
> Python Product.
> Can someone tell me what's the subtile difference between the keys 'id',
> 'meta_type' and 'portal_type' ?

http://www.plone.org/documentation/book/8
--

-- 
   Andy McKay

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
Gilles Lenfant | 4 Apr 2003 16:33
Favicon

Re: About factory_type_information

Andy,

Many thanks for the enlightenments !!

--Gilles
----- Original Message -----
From: "Andy McKay" <andy@...>
To: "Gilles Lenfant" <gilles@...>
Cc: "Plone Developers" <plone-developers@...>
Sent: Friday, April 04, 2003 4:08 PM
Subject: Re: [Plone-developers] About factory_type_information

> Gilles Lenfant wrote:
> > Hi,
> >
> > I'm stuck with some details about factory_type_information in a
CMF/Plone
> > Python Product.
> > Can someone tell me what's the subtile difference between the keys 'id',
> > 'meta_type' and 'portal_type' ?
>
> http://www.plone.org/documentation/book/8
> --
>    Andy McKay
>
>
>

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
(Continue reading)

k_vertigo | 6 Apr 2003 17:10

optimizing plone

if someone is interested, this tool gives really detailed analysis of 
what tales expressions were used on a page and how long they took.

http://www.zope.org/Members/guido_w/PTProfiler

cheers,

-k

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
Rocky Burt | 7 Apr 2003 06:15

Diffs for CMFQuickInstallerTool

All,

 

I wasn’t sure where I should submit this but Alan Runyan pointed me to this mailing list.  So here it is.

 

I have recently done some work to CMFQuickInstallerTool that gives it the ability to install/uninstall products that were built TTW (previously, only external products could be installed/uninstalled with CMFQuickInstallerTool).  Very minimal changes were required.  I’ve also updated README.txt to indicate how TTW install/uninstall is possible.

 

In addition to this feature, I’ve also modified /forms/installed_product_overview.pt in order to show a little more information (specifically, I’ve reorganized the table a little and added an entry that shows if a customized uninstall will occur if product is uninstalled).

 

Please accept this unified recursive patch of the files I’ve changed.  It is included as a very small attachment to this email.  If it at all possible I’d like to see this patch become integrated with the main CMFQuickInstallerTool product as I think it could/would be useful to many other people.

 

Ps. I’m not that great at this diff’ing stuff so if someone requires this patch to be in a different format, please let me know.

 

Regards,

Rocky Burt


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.463 / Virus Database: 262 - Release Date: 3/17/2003

Attachment (SupportForTTWProducts.diff): application/octet-stream, 6558 bytes
Marco Escobedo | 7 Apr 2003 19:06
Picon
Favicon

multiple forms

Hi,
I'm developing my own PloneProduct based on PloneMinimalProduct. Currently, 
PloneMinimalProduct involves one edit_form for object creation, but I would 
like to use a more complicated scheme. I want to involve multiple forms for 
object creation.

Geoff Davis wrote that "It might be better to use a real instance of the 
desired class that is stored in the /temp_folder (or a session) as the 
placeholder.  That way one can build up an object over the course of several 
forms.  Because the object would be stored in the transient object 
container, it would go away eventually if the user does not complete its 
creation."

Can any of you provide me an example that illustrates what Geoff describes?

Thanks,
Marco Escobedo

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
Myroslav Opyr | 7 Apr 2003 21:54
Picon

Re: multiple forms

Marco Escobedo wrote:

> I'm developing my own PloneProduct based on PloneMinimalProduct. 
> Currently, PloneMinimalProduct involves one edit_form for object 
> creation, but I would like to use a more complicated scheme. I want to 
> involve multiple forms for object creation. 

You mean wizard-like functionality? You should gain it right now with 
Plone Navigation Tool. Just put next form as success of previous one and 
so on.

> Geoff Davis wrote that "It might be better to use a real instance of 
> the desired class that is stored in the /temp_folder (or a session) as 
> the placeholder.  That way one can build up an object over the course 
> of several forms.  Because the object would be stored in the transient 
> object container, it would go away eventually if the user does not 
> complete its creation." 

As far as I know Plone Portal Factory Tool should take care of that. But 
as far as I know, it was never finished (look like not too many people 
needed it). But IMHO it'll be completed some time because functionality 
it should provide is needed in some environments.

Regarding the /temp_folder and session storages. I think it is bad idea 
because object does not have the right context then. Unless there is a 
way to store an object there and provide correct context for it to 
"feel" itself like inplace.

> Can any of you provide me an example that illustrates what Geoff 
> describes? 

More comments? Authorative ones?

m.
--

-- 
Myroslav Opyr
zope.net.ua <http://zope.net.ua/> ° Ukrainian Zope Hosting
e-mail: myroslav@... <mailto:myroslav <at> zope.net.ua>

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
alan runyan | 7 Apr 2003 22:43

navtree, folders and actions

hi.

just finishing up a website for a client and am realizing that
navtree is very crufty.  could we get rid of alot of the
properties if we could substitute it with Actions or atleast
to generate Expression contexts and evaluate the objects -
yes I know it would be a lot slower.

also.. regarding folders and tabs we need to fix this.  limi
your input would be appreciated.

- there are many occassions when a folder does not need a 'view'
if you turn off 'view' you should not get 'Switch to item view'
and should would not have the 'view' tab at the top.

- in folder_contents and navtree - should we override 'immediate_view'
attribute in portal_types and use that as the default view when
you click on something.

- should there be a special action that if found is used?  i.e.
if a type has a action called folder_url maybe it returns back
the appropriate url for what folder_content would link to?

NOTE: in Plone 1.1 we should remove the 'state' tab and move it
onto the individual actions of the types that it applies to.
obviously it does not apply to collectors or their issues (I think it borks 
if you try)

any opinions/ideas?

--

-- 
alan runyan

~runyaga <at> 
Clearnoodle Studio
http://www.clearnoodle.com/

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/

Gmane