[sqlalchemy] Install error

2006-11-28 Thread Murat Ozsoyler

Hi,

I recently updated the sources from SVN today. But I encountered the 
following error message when installing.

running install
running bdist_egg
Traceback (most recent call last):
   File setup.py, line 40, in ?
 classifiers = [
   File c:\Python24\Lib\distutils\core.py, line 149, in setup
 dist.run_commands()
   File c:\Python24\Lib\distutils\dist.py, line 946, in run_commands
 self.run_command(cmd)
   File c:\Python24\Lib\distutils\dist.py, line 966, in run_command
 cmd_obj.run()
   File 
c:\python24\lib\site-packages\setuptools-0.6a6-py2.4.egg\setuptools\command\install.py,
 
line 42, in run
 self.run_command('bdist_egg')
   File c:\Python24\Lib\distutils\cmd.py, line 333, in run_command
 self.distribution.run_command(command)
   File c:\Python24\Lib\distutils\dist.py, line 965, in run_command
 cmd_obj.ensure_finalized()
   File c:\Python24\Lib\distutils\cmd.py, line 117, in ensure_finalized
 self.finalize_options()
   File 
c:\python24\lib\site-packages\setuptools-0.6a6-py2.4.egg\setuptools\command\bdist_egg.py,
 
line 94, in finalize_options
 ei_cmd = self.get_finalized_command(egg_info)
   File c:\Python24\Lib\distutils\cmd.py, line 319, in 
get_finalized_command
 cmd_obj.ensure_finalized()
   File c:\Python24\Lib\distutils\cmd.py, line 117, in ensure_finalized
 self.finalize_options()
   File 
c:\python24\lib\site-packages\setuptools-0.6a6-py2.4.egg\setuptools\command\egg_info.py,
 
line 44, in finalize_options
 self.egg_version = self.tagged_version()
   File 
c:\python24\lib\site-packages\setuptools-0.6a6-py2.4.egg\setuptools\command\egg_info.py,
 
line 137, in tagged_version
 version += '-r%s' % self.get_svn_revision()
   File 
c:\python24\lib\site-packages\setuptools-0.6a6-py2.4.egg\setuptools\command\egg_info.py,
 
line 155, in get_svn_revision
 dirurl = urlre.search(data).group(1)# get repository URL
AttributeError: 'NoneType' object has no attribute 'group'

My configuration is Windows XP Home, Python 2.4.

Has anybody a solution for this?

TIA

Murat Ozsoyler


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



[sqlalchemy] Searching TEXT fields

2006-11-28 Thread José de Paula Eufrásio Júnior

What's the better form of doing that? To minize DB usage and stuff...

-- 
José de Paula Eufrásio Júnior
aka coredump
http://core.eti.br

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



[sqlalchemy] working with detached objects

2006-11-28 Thread [EMAIL PROTECTED]

i'd like to detach an object from a session, modify it, and reattach it
to the session, with detection of the object's current state
(modified), and added to the session's dirty set. i thought calling
session.save_or_update, would do this but it resets the modification
status of the object (_update_impl - register_persistent -
register_clean ). such that changes aren't written on session.flush. is
there a way to attach a modified object back to a session, such that
its registered as dirty?


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



[sqlalchemy] Re: working with detached objects

2006-11-28 Thread [EMAIL PROTECTED]

fwiw. using private methods on the session, calling session._attach(
instance ) has the nesc. effects of reattaching to the session with the
object marked in the session as dirty.

[EMAIL PROTECTED] wrote:
 i'd like to detach an object from a session, modify it, and reattach it
 to the session, with detection of the object's current state
 (modified), and added to the session's dirty set. i thought calling
 session.save_or_update, would do this but it resets the modification
 status of the object (_update_impl - register_persistent -
 register_clean ). such that changes aren't written on session.flush. is
 there a way to attach a modified object back to a session, such that
 its registered as dirty?


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



[sqlalchemy] Re: Cascade performance

2006-11-28 Thread Daniel Miller


Daniel Miller wrote:
 Lately I've been noticing severe slowness when instantiating new SA 
 objects...

Oh yeah, I forgot to mention that many of my class constructors take a parent 
object as one of their arguments, which explains the slow instantiation. 
cascade_test.py demonstrates that the problem is not happening during 
instantiation, but rather when setting the parent attribute on the child object.

~ Daniel 

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