On Sep 8, 2:47 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> Is there any document with new comment framework customization tips?  
> I'd like to switch finally to 1.0 but I don't know how to accomplish  
> few things (or have ugly workarounds):

Well, that is one feature that hasn't been documented but will be
hopefully there before 1.1
Create a custom app and create three functions or attributes with
names:
* get_model
* get_form
* get_form_target

Then you wire up your views and urls.py much like any normal app.
Check the django.contrib.comments.__init__.py for more details.
Also check out http://code.djangoproject.com/ticket/8630.

>   * do not display preview page after succesful posting of comment, go  
> to commented document instead (currently I have redirecting view and  
> handle it in my urlconf before urlconf of django.contrib.comments is  
> imported);

Place a hidden field with name next that will redirect wherever you
wish. Support for ?next (get method) is on the cards.

>   * do not display preview page on errors, redisplay the form instead  
> (no workaround yet);

Not possible at the moment and I would request you to open a ticket
and see what the core-devs think about this.

>   * do not require email at all (I set it to empty string in my custom  
> comment form using hidden field).

Sounds ok to me but this can be easily handled with custom comments.

> These 2 workarounds seem ugly to me, but I don't know how to resolve  
> these issues. Can anybody help me here?
>
> --
> We read Knuth so you don't have to. - Tim Peters
>
> Jarek Zgoda, R&D, Redefine
> [EMAIL PROTECTED]

--
Cheers
Thejaswi Puthraya
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to