Re: A demo of django-inlinetrans and django-inplaceedit

2012-01-13 Thread J . Pablo Martín Cobos
2012/1/12 Juergen Schackmann 

>
>
>>
>>
>>> 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

http://tracpub.yaco.es/djangoapps/browser/inplaceeditform/trunk/inplaceeditform/fields.py#L305

and add a condition:

http://tracpub.yaco.es/djangoapps/browser/inplaceeditform/trunk/inplaceeditform/commons.py#L57

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

1.
http://www.yaco.es/blog/en/contribuciones/2012/01/inline-editing-and-translating-in-django/

I hope your questions have been resolved

Best Regards,

--

Pablo Martín

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: A demo of django-inlinetrans and django-inplaceedit

2012-01-12 Thread Juergen Schackmann


>
>  
>
>> 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?
 

-- 
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/-/Ie3c77e-ynEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: A demo of django-inlinetrans and django-inplaceedit

2012-01-12 Thread J . Pablo Martín Cobos
2012/1/11 Juergen Schackmann 

> 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:

http://pypi.python.org/pypi/django-inplaceedit#adaptor-api

Or this extension:

https://github.com/goinnn/django-inplaceedit-extra-fields/blob/master/inplaceeditform_extra_fields/fields.py



> 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.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: A demo of django-inlinetrans and django-inplaceedit

2012-01-11 Thread Juergen Schackmann
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

-- 
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.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: A demo of django-inlinetrans and django-inplaceedit

2012-01-10 Thread rikuthero...@gmail.com
Hi,

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

El 10 de enero de 2012 09:56, J. Pablo Martín Cobos escribió:

> Hi,
>
> I hope that you like the demo:
>
> http://www.youtube.com/watch?v=_EjisXtMy_Y
>
> Set full sscreen mode to view it correctly
>
> Further information:
>
>
> http://www.yaco.es/blog/en/contribuciones/2012/01/inline-editing-and-translating-in-django/
>
> or Spanish version:
>
>
> http://www.yaco.es/blog/contribuciones/2012/01/inline-editing-and-translating-in-django/
>
> Regards,
>
> --
>
> Pablo Martín
>
> --
> 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
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Pablo Recio Quijano

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



A demo of django-inlinetrans and django-inplaceedit

2012-01-10 Thread J . Pablo Martín Cobos
Hi,

I hope that you like the demo:

http://www.youtube.com/watch?v=_EjisXtMy_Y

Set full sscreen mode to view it correctly

Further information:

http://www.yaco.es/blog/en/contribuciones/2012/01/inline-editing-and-translating-in-django/

or Spanish version:

http://www.yaco.es/blog/contribuciones/2012/01/inline-editing-and-translating-in-django/

Regards,

--

Pablo Martín

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.