How do you handle columns of the SQLAlchemy type DateTime?
Everytime I try to insert new data into the model I get: "KeyError: 'date_submit'"
inklesspen
i don't know of anyone who uses sacrud
asarch
:-(
whit` has quit
Thank you
Thank you very much :-)
asarch has quit
edong23 joined the channel
otter768 has quit
atomekk joined the channel
rickmak joined the channel
frispete_ joined the channel
frispete has quit
sakal joined the channel
NotreDev joined the channel
plamut joined the channel
rickmak has quit
rickmak joined the channel
whit` joined the channel
bochecha joined the channel
whit` has quit
agitator|hpeter joined the channel
otter768 joined the channel
areski joined the channel
stevepiercy_away is now known as stevepiercy
GitHub143 joined the channel
GitHub143
[pyramid_tutorials] stevepiercy pushed 2 new commits to master: http://git.io/vEHZG
pyramid_tutorials/master 310bf95 Steve Piercy: - index.rst fix table entries...
pyramid_tutorials/master b748f0a Steve Piercy: Merge pull request #124 from stevepiercy/master...
GitHub143 has left the channel
tomeff joined the channel
bochecha has quit
bochecha joined the channel
Loetkolben joined the channel
rickmak_ joined the channel
yleclanche joined the channel
tbenita joined the channel
Rizy joined the channel
bochecha has quit
sbivol
hi, I'm trying to use colanderalchemy + deform in my Pyramid app and all the models that have no relationships (no joke, they really are single!) work well. What doesn't work how I want are relationships: if a user is in a group, when editing the user I'd like to have all groups in a select box, instead of them all laid as "forms in a form"
I thought that I can simply do "info={'colanderalchemy': {'title': _('Groups'), 'widget': SelectWidget(values=Groups)}}" but Groups doesn't exist yet, and even if it existed, it also has a relationship on User
all examples I that found are for really trivial schemas, like Page(title, body)
s/I that/that I/
am I even on the right path, or relationships are not something that colanderalchemy can handle?
ljosberinn joined the channel
Rizy has quit
Charlie_X joined the channel
bochecha joined the channel
otter768 joined the channel
bochecha has quit
bochecha joined the channel
c0le has quit
c0le joined the channel
gustavofonseca joined the channel
bochecha has quit
frispete_ has quit
Rizy joined the channel
frispete joined the channel
rickmak joined the channel
yacc joined the channel
areski joined the channel
sakal has quit
sakal joined the channel
rickmak_ joined the channel
rodfersou joined the channel
Rizy has quit
moo-_-
sbivol: yo
sbivol
moo-_-: yoyo
moo-_-
sbivol: I created a checkbox widget allowing me to tag groups where the user is
moo-_-: you made a custom widget that can handle objects retrieved from a relationship. does that imply that colanderalchemy can't natively understand relationships?
or is it deform that can't handle them?
moo-_-
sbivol: you need to take this question to a colanderalchemy author, not me
sakal joined the channel
tomeff has quit
rodfersou has quit
gustavofonseca joined the channel
Rizy has quit
Charlie_X
sbivol: you have to remember how dumb HTML forms are.
disko joined the channel
sbivol
how does colander help overcome that dumbness?
Charlie_X
Colander is fine because it's very flexible.
But you may have to manage the mapping from the DB to the colander schema yourself. Depends a lot on the schema.
And this is when you may need a custom widget.
sbivol
I think I misunderstood what the purpose of Colander is...
moo-_-
sbivol: the colanderalchemy needs some more features and widgets to get to the point of just works
sbivol: meanwhile we'll need to hack it ourselves
rickmak_ joined the channel
Charlie_X
Colander provides a high-level API for typed form fields. Conversion to and from URL-encoding and validation.
tr_h has quit
Deform is a form library that provides widgets for these fields and some additional features.
moo-_-
I think uralbash has made some SQLAlchemy love widgets
ericof joined the channel
sbivol
typed-form <- is it typed as in „the form knows that this <select> is filled with Group objects, and upon deserialization I'll end up with the selected Group object”, or as in „the string here represents an int, the one over there is a boolean”?
Rizy joined the channel
Charlie_X
sbivol: best reading the docs.
Typing as in int, string, mapping, etc.
Charlie_X has quit
sbivol
despite reading the docs, I still hoped that I read them wrong and it actually (de)serializes Python objects