A tool for extracting information from SQLAlchemy objects and generating Colander schemas. The typical use-case is generating HTML forms with Deform.
Questions tagged [colanderalchemy]
9 questions
3
votes
1 answer
How to edit a existing record with ColanderAlchemy?
I have a SQLAlchemy model like this:
class Group(Base):
__tablename__ = 'groups'
id = Column(Integer, primary_key = True, ca_include = True)
name = Column(String, ca_include = True)
class User(Base):
__tablename__ = 'users'
id…

Lingfeng Xiong
- 1,131
- 2
- 9
- 25
2
votes
2 answers
Where to put automatic setup_schema for ColanderAlchemy+Pyramid
The docs say to put this somewhere:
from sqlalchemy import event
from colanderalchemy import setup_schema
event.listen(mapper, 'mapper_configured', setup_schema)
Where should this go in Pyramid? Should I be using Pyramid events instead of…

Rob Grant
- 7,239
- 4
- 41
- 61
1
vote
1 answer
Manage ManyToMany relationship in Websauna Admin Panel
I have a model where a lot of ManyToMany connections. I need a smart way to manage from Admin Panel. When creating a campaign model I need to connect to other models. Does Websauna have something like Django Inline foms?
class Campaign(Base,…

eirenikos
- 2,296
- 25
- 25
1
vote
1 answer
Generation admin panel with custom column type in Websauna
I have a SQLAlchemy model with custom type ChoiceType which comes from sqlalchemy_utils library.
class Recipient(Base, BaseMixin):
first_name = Column(String())
last_name = Column(String())
social_network =…

eirenikos
- 2,296
- 25
- 25
1
vote
1 answer
Cornice schema validation with colanderalchemy
Cornice's documentation mentions how to validate your schema using a colander's MappingSchema subclass. How should we use a colanderalchemy schema for the same purpose? Because if we create a schema using colanderalchemy as stated in the…

mamalos
- 97
- 10
1
vote
1 answer
Deform Date widget does not show up /JS Deform Date callback fails because of Modernizr
I have no idea whether both issues are related or not in any way, since I don't know much about Modernizr.
The widget is associated to the date field through ColanderAlchemy, in the SqlAlchemy mapping of the model:
class Model(Base):
...
…

ting12
- 81
- 10
1
vote
1 answer
How to populate deform select widgets from foreign key and enum columns in a NICE way
I've been wrestling with deform, sqlalchemy and colanderalchemy for a little while now and I'm having some trouble with populating select boxes.
Question 1
Is there a better way to do this:
value_type =…

Sheena
- 15,590
- 14
- 75
- 113
0
votes
1 answer
Custom templates and validation with Deform and mako
I am using deform in a project that uses pyramid with mako as a templating engine. I rewrote the templates for the widgets I need. I am using a modal for one of the forms so I wrote the mako template and the set the form widget with
form.widget =…

Camilo Gomez
- 111
- 1
- 5
0
votes
1 answer
Colander schemanode SelectWidget with "Select All" button
I just started working with the colander schemes;
with the select multiple select Widget. How can I add a button "select all" that will select all options?

Joost Döbken
- 3,450
- 2
- 35
- 79