Oleg Broytman
Oleg Broytman
I'm trying to revive it as the fork at https://github.com/CheetahTemplate3/cheetah3
This can be closed as everything is in master.
Instead of `str(attrib)` there should be something like ``` if isinstance(attrib, unicode): value = attrib.encode(template_encoding) else: value = str(attrib) ```
1st, such requests should be discussed in [the mailing list](https://sourceforge.net/projects/sqlobject/lists/sqlobject-discuss). David Turner who has implemented versioning is unavailable but there are other people. 2nd, this feature [was implemented](https://github.com/sqlobject/sqlobject/commit/976ebcaa19950cc4b31c5e003e2249b7c65a5f5c#diff-31267ed9c7e9b0a50d49e80d1dccb4073f142a730fec191ca38b61459900b6fa) long ago...
Closed for inactivity.
I don't understand. Can you provide a code example of the proposed feature?
Ok, I see: [MySQL](https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#operator_between), [Postgres](https://www.postgresql.org/docs/9.5/functions-comparison.html) and [SQLite](https://sqlite.org/lang_expr.html#between). You can implement it similar to [operator `IN`](https://github.com/sqlobject/sqlobject/blob/b21d76a239533d8b126b4ceb162dfb7c04fee60b/sqlobject/sqlbuilder.py#L1455-L1471) (or any other operator in SQLBuilder).
Can be implemented the same way as `User.q.name.startswith(prefix)` (also `endswith()` and `contains()`) [are implemented](https://github.com/sqlobject/sqlobject/blob/b21d76a239533d8b126b4ceb162dfb7c04fee60b/sqlobject/sqlbuilder.py#L460-L470).
> Is it possible to extend the SQLObjectField class yourself? There are more methods that can be added for convenience. What do you want to extend? Anyway my advice is...
Closed for inactivity.