2008-3-16

23:25 Magus-
not for this it doesnt, kramer
23:25 NoiZe
is there a way to run django db backend without the rest? I'm creating a server backend accessing the same db.
23:25 Magus-
order only matters for middleware that affects other middleware
23:25 zbyszek
Magus-: maybe you are right so how do would you (remember the chat about multiple currencies etc?) so how would you name the new column in transformed currency ?
23:25 SmileyChris
kramer: the end
23:25 Magus-
with one exception
23:25 Magus-
it would have to be after session, probably
23:26 zbyszek
now i have object.price
23:26 zbyszek
so object.price_transformed ;/ ?
23:28 zbyszek
;/ dificult question or what ;]?
23:30 kramer
this did the trick. thanks guys.
23:44 sorl-
the only way i figured out how to call something on m2m post save was to connect to LogEntry pre_save, i guess it will be ugly in any case...
23:48 sircco
if i define clean_field method , do i need to check for self.cleaned_data['field'] in this method before doing anything else?
23:48 sircco
or i can assume field = self.cleaned_data['field'] right on
23:50 zbyszek
ok anyone here ?;/
23:52 KarlsBerg87
oh
23:53 gordonjcp
zbyszek: briefly
23:53 gordonjcp
it is nearly bedtime though
23:53 zbyszek
ok
23:53 zbyszek
so i have price
23:53 zbyszek
in currency
23:53 zbyszek
i want to have a nother column
23:53 zbyszek
in standard currency
23:53 zbyszek
*price column
23:53 zbyszek
how should i name it
23:53 zbyszek
price_standard or what ?
23:54 gordonjcp
whatever you think is best
23:54 zbyszek
i don't know
23:54 zbyszek
i'm not native english :D
23:54 gordonjcp
what you actually call the fields in the database isn't hugely important, as long as they're not reserved Python words
23:54 gordonjcp
price_standard probably makes sense
23:55 zbyszek
but i would refer to it as
23:55 gordonjcp
what do you mean by "standard currency"?
23:55 zbyszek
object.price_standard
23:55 gordonjcp
yup
23:55 zbyszek
stuff has foreign key to currency
23:55 gordonjcp
ok
23:55 zbyszek
but i want to get the products price lets say in EUR
23:55 gordonjcp
right
23:55 gordonjcp
so
23:55 zbyszek
so i would refer to object.price_standard
23:56 zbyszek
but then i can get products price in USD
23:56 gordonjcp
all items have a price in EUR, but you can select storing a column with price in GBP, USD, etc
23:56 zbyszek
becouse i have ratios
23:56 gordonjcp
?
23:56 zbyszek
no , all product have diferent prices , but i have exchange ratio to all currencies
23:56 zbyszek
so i can get price in every currency
23:56 gordonjcp
price_standard would be perfectly acceptable English
23:56 zbyszek
so i i have default_currency
23:56 gordonjcp
... if that's what you were asking
23:57 zbyszek
hmm ;]
23:57 zbyszek
you are right ;]\
23:57 zbyszek
thnx
23:57 gordonjcp
or price_eur maybe/
23:57 gordonjcp
if your standard price is euros?
23:57 zbyszek
the thing is that there is no standar rpice
23:57 zbyszek
my standard currency is returned by function
23:57 zbyszek
I10n and i18n you know
23:58 zbyszek
so when English guy comes he would get price in GBP
23:58 zbyszek
when American , USD etc
23:58 gordonjcp
what about people from the rest of the UK?
23:58 gordonjcp
presumably they'd get a GBP price too
23:58 zbyszek
if not returned any currency , default currency would be EUR
23:58 KarlsBerg87
digitalspaghetti, me gusta tu nick
23:59 gordonjcp
zbyszek: GB != England ;-)
23:59 zbyszek
sry ;]
23:59 KarlsBerg87
ups, i think that im in a spanish channel
23:59 KarlsBerg87
i like your nickname :)
23:59 [530]
AzMoo: i posted a new ticket #6790
23:59 DjangoBot
23:59 digitalspaghetti
hey folks, can anyone tell me what might be up with this: http://dpaste.com/39740/
23:59 zbyszek
whose nickname ;] ?
23:59 digitalspaghetti
i'm building an ajax form that the user types in a username, and it verifys it doesn't exist
Page 21 of 21   ← Previous  (2,073 total)