Re: Postgresql duplicate keys and django problem

2006-10-26 Thread can.xiang
Denis, your suggestion fixed a similar problem bugging me hours. I tried to migrate some (1,000s rows) tables from mysql to postgresql with the build-in model functions, which is absolutely no problem. While when I tried to add new data with manipulator.save(), it always raise "integrity error" o

Re: encode special character in rendering template into XML

2006-11-17 Thread can.xiang
Thanks for your suggestion. I was thinking about generate XML in views directly. But the XML file I want is just simple one like HTML(they are also small) and it's all about presentation, thus it doesn't make sense to put them into views. Any other way to do it? --~--~-~--~~---

Re: encode special character in rendering template into XML

2006-11-18 Thread can.xiang
Russ, thanks for your suggestion. Because all I want is a pure XML output, so for this case, I want all variable encoded at one time, for non-variable string I can deal with it manually. After some experiment on attaching encoding function TextNode and VarialbeNode (actually it's the first time

Re: encode special character in rendering template into XML

2006-11-18 Thread can.xiang
"Fredrik Lundh 写道: " > (...and is especially useful of you're creating the context variables > on the fly, using searches/transforms on an initial model loaded by the > view, for example). > > Really?! can you show me some pointer or example on how to do it? I hate to prepare all presentationa

Re: changeManipulator and edit_inline

2006-09-06 Thread can.xiang
My understanding about ChangeManipulator is it should be only used for one model and it's ok with another model with edit-inline. If you'd like to manipulate two model at the same time without edit-inline, you can either subclass the Manipulator instead of ChangeManipulator or use two ChangeManip

Re: changeManipulator and edit_inline

2006-09-06 Thread can.xiang
My understanding about ChangeManipulator is it should be only used for one model and it's ok with another model with edit-inline. If you'd like to manipulate two model at the same time without edit-inline, you can either subclass the Manipulator instead of ChangeManipulator or use two ChangeManip

Re: changeManipulator and edit_inline

2006-09-06 Thread can.xiang
My understanding about ChangeManipulator is it should be only used for one model and it's ok with another model with edit-inline. If you'd like to manipulate two model at the same time without edit-inline, you can either subclass the Manipulator instead of ChangeManipulator or use two ChangeManip

Re: changeManipulator and edit_inline

2006-09-06 Thread can.xiang
My understanding about ChangeManipulator is it should be only used for one model and it's ok with another model with edit-inline. If you'd like to manipulate two model at the same time without edit-inline, you can either subclass the Manipulator instead of ChangeManipulator or use two ChangeManip

Re: changeManipulator and edit_inline

2006-09-06 Thread can.xiang
Sorry, I was reply your post in browser and google kept telling me there was an error for my post action. I tried several time, so... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to