Hi,
I'm developing something like that. I have used same approach as you, I
don't know if it is the best, but is working for me.
I have defined a 'subscription' object that is a container. Then I have
allowed to create in this container 'assistant' objects. I have defined
these objectecs using schema and layouts. Subscription object has a link
widget to the subscription_form (I use the widget property
'Hide the widget if the given TAL expression returns true ' to make some
tests to show or not the link to the subscription form, i.e. if there is
not any vacant I hide the link)
Anonymous user registers for the conference means:
- registration-form is presented to the user
- after successful data entry, an attendee_id is generated and a new
attendee_record (ar) is created in the attendee-workspace (aws) for that
user.
I have some problems here because anonymous user can't create nothing in
the site. So I have checked CPSForum to see what it does. CPSForum uses
a method from CommentTool to allow anonymous users add content. So I
have done something similar, I have created a tool and put there the
method to allow data creation.
- the ar-workflow for the ar "publishes" this rr in the attendee-section
(as) ie.
- it sends an email to the attendee
- checks payment
- and so on.
In my case after data entry user must confirm the registration following
a link sent by mail. While user don't follow the link the user is in
state unconfimed, and when follow it goes to confirmed.
To send the mails and execute needed script for confirmation, I have to
use again methods coded in the tool, because anonymous user don't have
permission to execute/consult data in the needed level (and a permission
change is not the solution)
- if the attendee wants to modify her/his ar she/he does this in the
aws. The ar-workflow takes care of publishing this modification in the as.
Will anonymous user have modification permission?
Does that make sense ?
I have developed my subscription app into another bigger development,
but maybe the best way is define a new product. Also I want do it using
only CPS mechanism (i.e for creating objects) but at the moment I have
to do some "bypass".
--
Aitzol Naberan BurgaƱa
CodeSyntax
http://www.codesyntax.com
943 82 17 80
_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users