"Disrupt07" <[EMAIL PROTECTED]> writes:

> I have a list of file paths in a database table.
> example: "C:\"
>               "C:\%user%\My Documents"
>               "//server/username"
>              and so on.
>
> I am trying to filter data using SQLAlchemy's select_by() method.  The
> problem is that it is not finding some of the strings because of
> characters like the %, /, \ and others.
>
> Is there any "escape sequence" parameter I should pass to the
> select_by method (or another SQLAlchemy method) so that the strings I
> am searching for are found?

Take a look at Python docs.  This is not a SQL Alchemy or TG problem. 

You can also use raw strings: r"C:\", for example. 

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

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

Reply via email to