00:01.26 | jkakar | jdobrien: Are you getting an exception from storm/variables.py:421, in DateTimeVariable.parse_set? |
00:34.25 | jdobrien | jkakar, File "/usr/local/lib/python2.6/dist-packages/storm/variables.py" in parse_set |
00:34.25 | jdobrien | <PROTECTED> |
00:36.00 | jkakar | jdobrien: So it looks like you might be missing a tzinfo=timezone("foo") keyword argument in the definition of your DateTime property. |
00:36.21 | jkakar | jdobrien: I think, if I understand this correctly, that Storm only allows one kind of timezone per DateTime field. |
00:36.37 | jkakar | jdobrien: In Landscape we store everything in UTC and then transform it into whatever timezone we need at runtime. |
00:36.46 | jkakar | jdobrien: I have to step away. Good luck. |
00:36.54 | jdobrien | last_login = DateTime(tzinfo=timezone("UTC")) |
00:37.25 | jdobrien | jkakar, the problem is django is updating my variable and I don't want it to |
00:38.44 | jdobrien | jkakar, is there anyway for me to put in a validator that converts it |
00:39.22 | jdobrien | i just don't know enough about converting this crap...since i always use UTC in my code |
00:42.21 | jkakar | jdobrien: You can define a validator function like this: https://pastebin.canonical.com/24005/ |
00:42.53 | jkakar | jdobrien: I'm not sure if it'll do what you want though, and I need to leave now so I can't check it out further. There's a docstring about it in storm/variables.py. Grep for validator. Good luck! |
00:43.07 | jdobrien | jkakar, yeah |
00:43.24 | jdobrien | jkakar, i have a few...i just know diddly about converting the tz |
00:43.45 | jdobrien | i think there's a replace function, but i don't know if that converts it properly |
00:44.04 | *** join/#storm oubiwann_ (n=oubiwann@c-24-8-208-199.hsd1.co.comcast.net) |
00:48.03 | jdobrien | jkakar, i suspect this wont work: https://pastebin.canonical.com/24007/ |
01:06.23 | *** join/#storm oubiwann_ (n=oubiwann@c-24-8-208-199.hsd1.co.comcast.net) |
01:21.55 | *** join/#storm artista_frustrad (n=artista_@201-40-200-66.ctame704.dsl.brasiltelecom.net.br) |
02:48.13 | *** join/#storm stub (n=stub@ppp-58-8-12-150.revip2.asianet.co.th) |
05:14.07 | *** join/#storm stub (n=stub@canonical/launchpad/stub) |
05:21.38 | *** join/#storm elmom_ (n=elmom@hoasnet-fe29dd00-137.dhcp.inet.fi) |
05:49.20 | *** part/#storm stub (n=stub@canonical/launchpad/stub) |
05:54.29 | *** join/#storm stub (n=stub@ppp-58-8-209-220.revip2.asianet.co.th) |
06:33.29 | *** join/#storm elmom_ (n=elmom@hoasnet-fe29dd00-137.dhcp.inet.fi) |
08:17.33 | *** join/#storm _thumper_ (n=quassel@125-236-193-95.adsl.xtra.co.nz) |
11:27.52 | *** join/#storm seiflotfy1 (n=seif@x395.vpn.hrz.tu-darmstadt.de) |
11:29.09 | *** join/#storm elmom_ (n=elmom@vallila-gw.hupnet.helsinki.fi) |
11:40.51 | *** join/#storm niemeyer (n=niemeyer@201-11-231-109.pltce701.dsl.brasiltelecom.net.br) |
11:54.27 | *** join/#storm noodles775 (n=miken@canonical/launchpad/noodles775) |
12:10.48 | *** join/#storm zanaga (i=ressu@oxygen.at.ressukka.net) |
12:21.54 | zanaga | part |
12:21.56 | *** part/#storm zanaga (i=ressu@oxygen.at.ressukka.net) |
12:39.58 | *** join/#storm fcorrea (n=fcorrea@187.3.137.148) |
13:36.48 | *** join/#storm drudi (n=drudi@189.117.35.106) |
13:51.46 | *** join/#storm andrea-bs (n=andrea@ubuntu/member/beeseek.developer.andrea-bs) |
14:17.49 | *** join/#storm oubiwann__ (n=oubiwann@24.8.208.199) |
14:23.06 | *** join/#storm andrea-bs (n=andrea@ubuntu/member/beeseek.developer.andrea-bs) |
14:29.13 | *** join/#storm mup (n=mup@li37-90.members.linode.com) |
14:42.22 | *** join/#storm vvinet (n=vince@132.210.76.196) |
14:56.42 | *** join/#storm bigdog (n=scmikes@72-197-8-8-arpa.cust.cinci.current.net) |
15:07.11 | *** join/#storm stub (n=stub@ppp-58-8-209-220.revip2.asianet.co.th) |
16:00.15 | *** join/#storm sidnei_ (n=sidnei@201.34.66.27) |
16:06.29 | *** join/#storm andrea-bs (n=andrea@host46-103-dynamic.30-79-r.retail.telecomitalia.it) |
16:41.24 | *** join/#storm keppla (n=keppla@i577B3044.versanet.de) |
17:08.57 | *** join/#storm niemeyer_ (n=niemeyer@201-11-231-109.pltce701.dsl.brasiltelecom.net.br) |
18:18.35 | *** join/#storm sidnei__ (n=sidnei@200-96-118-17.cslce701.dsl.brasiltelecom.net.br) |
20:26.16 | *** join/#storm elmom_ (n=elmom@hoasnet-fe29dd00-137.dhcp.inet.fi) |
22:14.16 | *** join/#storm srichter (n=quassel@c-76-19-135-180.hsd1.ma.comcast.net) [NETSPLIT VICTIM] |
22:14.16 | *** join/#storm bac (n=bac@canonical/launchpad/bac) [NETSPLIT VICTIM] |
22:14.16 | *** join/#storm rockstar (n=rockstar@canonical/launchpad/rockstar) [NETSPLIT VICTIM] |
22:14.16 | *** join/#storm elmom_ (n=elmom@hoasnet-fe29dd00-137.dhcp.inet.fi) [NETSPLIT VICTIM] |
22:14.16 | *** join/#storm bigdog (n=scmikes@72-197-8-8-arpa.cust.cinci.current.net) [NETSPLIT VICTIM] |
22:14.16 | *** join/#storm vvinet (n=vince@132.210.76.196) [NETSPLIT VICTIM] |
22:14.16 | *** join/#storm oubiwann (n=oubiwann@24.8.208.199) [NETSPLIT VICTIM] |
22:14.16 | *** join/#storm drudi (n=drudi@189.117.35.106) [NETSPLIT VICTIM] |
22:14.16 | *** join/#storm thumper (n=quassel@canonical/launchpad/thumper) [NETSPLIT VICTIM] |
22:14.16 | *** join/#storm ivan` (n=ivan@unaffiliated/ivan/x-000001) [NETSPLIT VICTIM] |
22:14.16 | *** join/#storm maxb (n=maxb@jabberwock.vm.bytemark.co.uk) [NETSPLIT VICTIM] |
22:14.16 | *** join/#storm therve (n=therve@xvm-14-10.ghst.net) [NETSPLIT VICTIM] |
22:14.16 | *** join/#storm mzz (n=mzz@flits102-164.flits.rug.nl) [NETSPLIT VICTIM] |
22:19.43 | *** join/#storm webmaven_ (n=webmaven@68.35.25.63) |
22:50.48 | *** join/#storm artista_frustrad (n=artista_@201-40-200-66.ctame704.dsl.brasiltelecom.net.br) |
22:51.08 | *** join/#storm artista_frustrad (n=artista_@201-40-200-66.ctame704.dsl.brasiltelecom.net.br) |
22:54.04 | *** join/#storm fcorrea (n=fcorrea@189-54-24-33-nd.cpe.vivax.com.br) |