No one know how to fix this?
I really want this one to work.. Else I need to write my own admin..
Which I think is nonsense for a blog application...

On Jul 24, 5:22 pm, bloeper <[email protected]> wrote:
> Hi All,
>
> Sorry for my question flood, but I am trying to get this to work.
> I have the following init in a blog model:
> def __init__( self, title, content, user_id):
>       self.title = title
>       self.slug = urlify( title )
>       self.date = datetime.now()
>       self.content = content
>       self.user_id = user_id
>
> When i create some default records with the web-setup it works fine,
> but when I try to add a record trough the web admin i get the error
> that the init function expects 4 parameters and that 1 is given.
> How does the admin add records?
> In the admin I do fill in all the fields, but it seems to me it posts
> those parameters in one list or something...
> Anyone got an idea how to fix this...
> I need the init to work because of the urlify function I use. (this
> function makes from the title a save url)
> For instance: Test blog goes through urlify and the output becomse:
> test-blog
>
> Thanks in advance for the help.
>
> Greetings,
>
> Bloeper

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to