2009-7-12
| 23:30 | rozwell | Iradieh_: doesn't work |
| 23:30 | crazygir | sorry to post again, though I think it was just lost somewhere: how would you modify the cforms validation so that not all choice forms are required, but anything that is entered must then be valid: http://collingrady.wordpress.com/2008/02/18/edi... |
| 23:30 | Iradieh_ | rozwell: How would you make them work? |
| 23:30 | SmileyChris | Iradieh_: list(A) + list(B) |
| 23:31 | nategood | list(A) +list(B) did the trick, didn't try | |
| 23:31 | rozwell | Iradieh_: one can chain them together |
| 23:31 | mattmcc | Which approach you use would depend on the outcome you're looking for. |
| 23:31 | lynxaba | here it is DarwinSurvivor: http://pastebin.org/1246 |
| 23:31 | rozwell | Iradieh_: though i don't know why it would be so useful to chain more than one model type |
| 23:31 | mattmcc | You can't. |
| 23:32 | lynxaba | DarwinSurvivor: i think the problem starts at line 32 |
| 23:32 | SmileyChris | crazygir: you should be using a formset |
| 23:33 | crazygir | should is a heavy word, why do you say that? |
| 23:33 | SmileyChris | crazygir: because it'll do what you want |
| 23:33 | crazygir nods | |
| 23:33 | DarwinSurvivor | can you also put your error message on a dpaste (or pastebin) |
| 23:34 | crazygir | I'll get some docs.. never played with formsets |
| 23:34 | crazygir | thanks |
| 23:34 | DarwinSurvivor | lynxaba: does anyone know what times polpak is usually online? |
| 23:34 | DarwinSurvivor | lynxaba: can you also put your error message on a dpaste (or pastebin) |
| 23:34 | crazygir | cool stuff SmileyChris |
| 23:35 | SmileyChris | crazygir: see, "should" :) |
| 23:37 | crazygir | SmileyChris: :P |
| 23:37 | lynxaba | just a sec |
| 23:39 | lynxaba | DarwinSurvivor: http://pastebin.org/1248 |
| 23:39 | lynxaba | and i don't know who's polpak |
| 23:42 | DarwinSurvivor | lynxaba: sorry, i accidentally copy/pasted the polpak thing to you, just ignore it |
| 23:42 | Iradieh_ | rozwell mattmcc can you use the dot notation on a mode if you do list(a) + list(b) ? |
| 23:43 | Iradieh_ | model* ^ |
| 23:43 | mattmcc | Iradieh_: You will end up with a list of model instances. |
| 23:43 | Iradieh_ | oh |
| 23:44 | DarwinSurvivor | lynxaba: good lord, you have python installed in your user folder? |
| 23:45 | lynxaba | i think so, i really don't know, i installed it today with a friend's script |
| 23:45 | DarwinSurvivor | lynxaba: what OS are you using (debian, ubuntu, etc)? |
| 23:45 | lynxaba | you mean usr, don't you? |
| 23:45 | lynxaba | ubuntu |
| 23:46 | DarwinSurvivor | lynxaba: i would recommend simply installing python from the repositories (sudo apt-get install python) |
| 23:47 | lynxaba | you think that's the problem? why? |
| 23:47 | DarwinSurvivor | lynxaba: what directory does you django site exist in? (so i can search the error message better) |
| 23:47 | lynxaba | let me see |
| 23:47 | DarwinSurvivor | lynxaba: i don't think that's the problem, just a suggestion so that python stays up to date |
| 23:49 | lynxaba | is in ~/lib/bin |
| 23:50 | DarwinSurvivor | lynxaba: is that where you installed "django" or you django "site"? |
| 23:51 | Iradieh_ | mattmcc: I have decided that I am next week going to do me portfolio/bog with django |
| 23:51 | Iradieh_ | mattmcc: Up to now I have been trying out different parts of Django |
| 23:51 | Iradieh_ | mattmcc: Like template system, generic views and the admin page |
| 23:51 | thunderbolt | Iradieh_: Signals! |
| 23:51 | thunderbolt | Feeds! |
| 23:52 | Iradieh_ | Signals yeah I have to look that up |
| 23:52 | DarwinSurvivor | lynxaba: if you had to edit a view.py file, where would that view.py file be? |
| 23:52 | thunderbolt | incremental improvement using ajax. |
| 23:52 | Iradieh_ | Dont care much about feeds, didnt look that awsome |
| 23:52 | Iradieh_ | thunderbolt: oh yeah I got that too, but thats more JS |
| 23:52 | Iradieh_ | Just need a way to embedd pictures in Post.content and able to upload pictures to Post |
| 23:52 | thunderbolt nods | |
| 23:53 | Iradieh_ | like "Here is my car: {{ picture 0, thumbnail} |
| 23:53 | lynxaba | here: ~/Desktop/py_project/forum |
| 23:53 | thunderbolt | I have to get off my lazy butt and write up a PDF thumbnailer to use with my Django site. |
| 23:53 | lynxaba | DarwinSurvivor: here: ~/Desktop/py_project/forum |
| 23:53 | Iradieh_ | thunderbolt: Oooh gief me |
| 23:53 | DarwinSurvivor | lynxaba: thanks, that makes it MUCH easier to debug :p |
| 23:53 | Iradieh_ | lynxaba: Is that hard? I mean there are proarly alot of PDF-libs for Python? |
| 23:53 | lynxaba | welcome, sorry |
| 23:54 | thunderbolt | Iradieh_: I'll just be popping a subprocess using ImageMagick, it'll work in my environment, but relies on imagemagick being installed with ghostscript. |
| 23:54 | DarwinSurvivor | lynxaba: huh, very strange... you are not getting any errors in *your* code, it seems to be only in djangon... |
| 23:54 | lynxaba | but actually let me write it textually (spanish), ~/Escritorio/proyecto_python/foro |
| 23:54 | thunderbolt | I could probably use Cairo or a postscript binding, but I am even lazy in my laziness. |
| 23:54 | DarwinSurvivor | lynxaba: where did you get django (repos, download, friend's script, etc)? |
| 23:55 | lynxaba | downloaded with the script (wget i think) |
| 23:55 | Iradieh_ | thunderbolt: Did you have a solution to me problem? |
| 23:55 | Iradieh_ | thunderbolt: like "Here is my car: {{ picture 0, thumbnail} |
| 23:55 | Iradieh_ | I can do that in Rails |
| 23:55 | thunderbolt | Look at the ImageField and file upload stuff. |
| 23:56 | thunderbolt hasn't worked with that part of Django yet, he just knows it exists | |
| 23:56 | lynxaba | DarwinSurvivor: downloaded with the script (wget i think) |
| 23:56 | mattmcc | Iradieh_: You just want a thumbnailing tag? See sorl-thumbnail. |
| 23:56 | Iradieh_ | mattmcc: No |
| 23:57 | DarwinSurvivor | lynxaba: it could be a problem with your settings.py file, what changes did you make prior to the problem occuring? |
| 23:57 | Iradieh_ | mattmcc: I want to be able to upload a picture (I got that far with Imagefield) but then I want to be able to embedd that picture in text Post.content -> "Here is my car {{picture 0}" that makes a clickable thumbnail that I later extend with JS |
| 23:58 | mattmcc | Oh. TinyMCE would handle that. |
| 23:58 | lynxaba | i started to play with the form, didn't touch the settings |
| 23:59 | lynxaba | DarwinSurvivor: i started to play with the form, didn't touch the settings |
| 23:59 | mattmcc | Well, the clickable thumbnailing part would take a bit of coding to add. |
| 23:59 | lynxaba | i just modified the template and the view |
| 23:59 | lynxaba | .... -.- |
| 23:59 | lynxaba | DarwinSurvivor: i just modified the template and the view |
Page 18 of 18
← Previous
(1,786 total)