A demo of django-inlinetrans and django-inplaceedit

242 views
Skip to first unread message

J. Pablo Martín Cobos

unread,
Jan 10, 2012, 3:56:41 AM1/10/12
to django...@googlegroups.com

rikuth...@gmail.com

unread,
Jan 10, 2012, 4:55:12 PM1/10/12
to django...@googlegroups.com
Hi,

Thanks for publishing the project! It looks great :-)

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



--
Pablo Recio Quijano

Juergen Schackmann

unread,
Jan 11, 2012, 4:27:33 PM1/11/12
to django...@googlegroups.com
Hi, 
this looks really great.
I have 3 questions for which I would highly appreciate the answers:

1. What is the best way to include some form magic, i.e. sending the changes not directly to the model but to a form that does some verification and also return the form error messages?
2. If I do not want to send field by field, but possibly a set of fields back to the to the server, like the row of a table. Would that be feasible?
3. How would you create a new field on the page/ new object in the model?

Keep up the great work
Juergen

J. Pablo Martín Cobos

unread,
Jan 12, 2012, 7:21:24 AM1/12/12
to django...@googlegroups.com
2012/1/11 Juergen Schackmann <juergen.s...@googlemail.com>

Hi, 
this looks really great.

Thanks
 
I have 3 questions for which I would highly appreciate the answers:


I hope have three answers
 
1. What is the best way to include some form magic, i.e. sending the changes not directly to the model but to a form that does some verification and also return the form error messages?

The value is does not send to the directly to the model. Django-inplace-edit does verification, if you need a special verification you can create an adaptor and overwrite the method "get_form", this returns a specify form with a clean method.

See this:


Or this extension:


 
2. If I do not want to send field by field, but possibly a set of fields back to the to the server, like the row of a table. Would that be feasible?

Now this is not implemented, and I think it is not trivial. But you can try it

3. How would you create a new field on the page/ new object in the model?

I'm sorry I don't understand this
 

Keep up the great work

Thnx
 
Juergen

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/rR9BqMnZhEsJ.

Juergen Schackmann

unread,
Jan 12, 2012, 3:42:12 PM1/12/12
to django...@googlegroups.com


 
2. If I do not want to send field by field, but possibly a set of fields back to the to the server, like the row of a table. Would that be feasible?

Now this is not implemented, and I think it is not trivial. But you can try it
i am afraid my js skills are too limited for that :-( 

3. How would you create a new field on the page/ new object in the model?

I'm sorry I don't understand this
let me explain with an example: i have an recipe model and i have ingredients that have a foreign key to recipe.  on the web page i display the recipe plus all its ingredients. and with inplaceedit i can edit all those ingredients, which is great. but how would i enable the user to add a new ingredient?
 

J. Pablo Martín Cobos

unread,
Jan 13, 2012, 4:21:35 AM1/13/12
to django...@googlegroups.com

2012/1/12 Juergen Schackmann <juergen.s...@googlemail.com>



 
2. If I do not want to send field by field, but possibly a set of fields back to the to the server, like the row of a table. Would that be feasible?

Now this is not implemented, and I think it is not trivial. But you can try it
i am afraid my js skills are too limited for that :-( 

If you change the backend to allow edit inplace of various fields, I change the fronted, although I don't need this feature :-)
 

3. How would you create a new field on the page/ new object in the model?

I'm sorry I don't understand this
let me explain with an example: i have an recipe model and i have ingredients that have a foreign key to recipe.  on the web page i display the recipe plus all its ingredients. and with inplaceedit i can edit all those ingredients, which is great. but how would i enable the user to add a new ingredient?
 

Ok now I understand.

Now this is not possible, when dealing with relationships you can only inplace edit using fk and m2m. But it is not difficult to implement in django-inplaceedit.
 
You should create a adaptor


and add a condition:


I paste of the post in the blog [1]:

"Should be generic, configurable and extensible"

"It is important to notice that neither the inline edition or translation cannot replace an administration of content or tags, but they can greatly improve user experience."

REF's


I hope your questions have been resolved

Best Regards,

--

Pablo Martín

Reply all
Reply to author
Forward
0 new messages