On Feb 4, 2010, at 3:39 PM, werner wrote:

>>> 
>> OK i see the point about the constructor, though I want to get across that
>> yes the constructor is optional with declarative, but you can still make
>> one.
> Could the constructor be done in a similar way as you suggested to do the 
> "__repr__"?

it certainly can, but I'm really trying to make the tutorial look like "regular 
Python objects like any Python beginner is familiar with".  you'd be surprised 
how thrown off people get even by a simple "for k in kwargs: setattr(k, 
kwargs[k])" type of thing.

>>    that might be too much to ask.   as far as Sequence and such, I
>> still would rather leave those out of the examples - since we're on Sphinx
>> I should learn to put a little "sidebox" type of thing that lays out those
>> issues straight in the tutorial when the mapping is first introduced, i.e.
>> with mysql, fb, oracle, etc. you need to consider XYZ.
>>   
> Sidebox?  You mean rst admonitions?
> http://docutils.sourceforge.net/docs/ref/rst/directives.html#admonitions

yes !


> 
> E.g. something like this :
> 
> .. tip::
>    With FB, ..... etc you should use Sequence ... for your primary key.
> 
> .. tip::
>    With FB, .... you need/have to define the length of your
> 
> Werner
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To post to this group, send email to sqlalch...@googlegroups.com.
> To unsubscribe from this group, send email to 
> sqlalchemy+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sqlalchemy?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to