[sqlalchemy] SQLAlchemy-ImageAttach: an extension for attaching images to entity objects

2013-06-19 Thread Hong Minhee
and repository can be found at the following urls: https://sqlalchemy-imageattach.readthedocs.org/ https://github.com/crosspop/sqlalchemy-imageattach Please try it out and give me feedback! Thanks, Hong Minhee smime.p7s Description: S/MIME cryptographic signature

[sqlalchemy] Specifying foreign_keys and remote_side in self-referential many-to-many relationship

2013-06-05 Thread Hong Minhee
-custom-foreign-conditions Are there any other resources to get more hints about it? Thanks, Hong Minhee -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy

[sqlalchemy] Re: Specifying foreign_keys and remote_side in self-referential many-to-many relationship

2013-06-05 Thread Hong Minhee
It seems I found the most close solution: http://stackoverflow.com/a/9119764/383405 I haven’t been aware that secondary can take select() query as well. Might there be another way to achieve the same by any chance? On Jun 5, 2013, at 9:27 PM, Hong Minhee min...@dahlia.kr wrote: Hi, I

[sqlalchemy] How to set the column which has default value to explicitly None

2012-12-13 Thread Hong Minhee
sqlalchemy.ext.declarative with its default constructor.) Does defaultvalue mean just alternative value to None? I want to make the column to be set to the current time by default, but still possible to be explicitly set to None if needed. Is there any way to achieve this? Thanks, Hong Minhee -- You received

Re: [sqlalchemy] Re: How to set the column which has default value to explicitly None

2012-12-13 Thread Hong Minhee
It works very well. Thanks! On Friday, December 14, 2012 at 5:52 AM, Michael Bayer wrote: tricky, perhaps try setting the column to the expression sqlalchemy.sql.null() for now.A None does indicate fire the default. On Thursday, December 13, 2012 12:41:38 PM UTC-5, Hong Minhee wrote

[sqlalchemy] Best practice for faves/likes counting?

2012-12-05 Thread Hong Minhee
be automatically updated without inconsistency if I catch SQLAlchemy events, but I’m not sure whether it’s correct way to do it or not. How do you guys solve such situation with SQLAlchemy? Thanks, Hong Minhee -- You received this message because you are subscribed to the Google Groups sqlalchemy group

[sqlalchemy] Re: Best practice for faves/likes counting?

2012-12-05 Thread Hong Minhee
very efficient, maybe it would be good to do it right on the db server with a trigger and a stored procedure and avoid extra python function calls. What database do you use? On Wednesday, December 5, 2012 3:06:03 PM UTC-8, Hong Minhee wrote: Hi, I am making a typical web application

[sqlalchemy] Re: SQLAlchemy column_property

2012-08-30 Thread Hong Minhee
You could use hybrid attributes to do that. http://docs.sqlalchemy.org/en/rel_0_7/orm/extensions/hybrid.html On Wednesday, August 29, 2012 5:22:02 PM UTC+9, Denis Rykov wrote: I have two models: class Report(Base): __tablename__ = 'report' id = Column(Integer,

Re: [sqlalchemy] SQLAlchemy-Future

2010-12-27 Thread Hong Minhee
Could you tell me how it is going on? -- 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

Re: [sqlalchemy] SQLAlchemy-Future

2010-12-27 Thread Hong Minhee
I don’t know why setuptools provides pkg_resources, implements another incompatible way to declare namespace packages, additionally in spite of existence of pkgutil.extend_path, the standard way to do it. IMO sqlalchemy.contrib namespace have to be declared by using pkgutil.extend_path,

Re: [sqlalchemy] SQLAlchemy-Future

2010-12-22 Thread Hong Minhee
In the case of Flask and Sphinx, they use the namespace package called flaskext and sphinxcontrib. - http://flask.pocoo.org/docs/extensiondev/ - https://bitbucket.org/birkenfeld/sphinx-contrib See the case of repoze.bfg also. It made repoze and repoze.bfg both namespace packages: -

Re: [sqlalchemy] SQLAlchemy-Future

2010-12-21 Thread Hong Minhee
Thanks for your fine answer. Is there any plan of defining sqlalchemy.contrib namespace package into current 0.7 branch or 0.6.x release? I hope for it to be clear. -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email

[sqlalchemy] SQLAlchemy-Future

2010-12-20 Thread Hong MinHee
Hi everyone, I’ve been written a small extension that introduces promise/future[1] model to SQLAlchemy query objects. The documentation can be found http://lunant.github.com/SQLAlchemy-Future/ but it’s written in my awkward English, so any indications about my writing are welcome. Anyway, there