<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
I believe I'm getting a handle on using dip with sqlalchemy - thanks
for the SQLA adapters.<br>
<br>
Questions:<br>
When using the declarative view is there a way not to use a spinbox
for integers?<br>
Does the 'Grid' work? I'm not providing the traceback because it's
likely I'm doing something wrong.<br>
<br>
Error with Floats:<br>
Even after providing a type_map in sqla_imodeltype_adapter.py I get
an error (see below). Would you take the time to explain what I
need to do. <br>
<br>
I added the following :<br>
<br>
# The map of the types used to handle each supported SQLAlchemy
type. Note<br>
# that the order might be important so we don't use a dict.<br>
# FIXME: Add support for more types.<br>
_type_map = (<br>
(SQLA_Boolean, Bool),<br>
(SQLA_Integer, Int),<br>
(SQLA_String, Str),<br>
#<br>
(SQLA_Float, Float),<br>
(SQLA_Enum, Enum),<br>
)<br>
<br>
The error:<br>
<br>
<meta name="qrichtext" content="1">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment-->File <span
style=" font-weight:600; color:#000066;">"/home/johnf/Dip/dip/temp1.py"</span>,
line 25, in <span style=" font-weight:600; color:#227722;"><module></span><br>
<span style=" font-style:italic;">class ReceiptHist(Base):</span><br>
File <span style=" font-weight:600; color:#000066;">"/home/johnf/Dip/dip/temp1.py"</span>,
line 32, in <span style=" font-weight:600; color:#227722;">ReceiptHist</span><br>
<span style=" font-style:italic;">recv_freight = Column(Float)</span><br>
File <span style=" font-weight:600; color:#000066;">"/usr/lib64/python3.3/site-packages/SQLAlchemy-0.9.1-py3.3-linux-x86_64.egg/sqlalchemy/sql/schema.py"</span>,
line 1042, in <span style=" font-weight:600; color:#227722;">__init__</span><br>
<span style=" font-style:italic;">self._init_items(*args)</span><br>
File <span style=" font-weight:600; color:#000066;">"/usr/lib64/python3.3/site-packages/SQLAlchemy-0.9.1-py3.3-linux-x86_64.egg/sqlalchemy/sql/schema.py"</span>,
line 79, in <span style=" font-weight:600; color:#227722;">_init_items</span><br>
<span style=" font-style:italic;">item._set_parent_with_dispatch(self)</span><br>
<br>
<span style=" font-size:large; font-weight:600; color:#000066;">builtins.AttributeError:
type object 'Float' has no attribute '_set_parent_with_dispatch'<br>
</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span
style=" font-size:large; font-weight:600; color:#000066;"><br>
</span><!--EndFragment--></p>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
Johnf<br>
</body>
</html>