Package: opengever.ogds.models
IntroductionThis package contains the SQLAlchemy models for the OpenGever directory
service.The purpose of makingopengever.ogds.modelsits own package is to allow
other appliactions than OpenGever to use its models, for example the so called
“bridge” (a small Pyramid application).Thereforeopengever.ogds.modelsshould not have any Plone dependencies (except
for testing, using the[tests]extra), but instead only depend on SQLAlchemy
and possibly other pure Python libraries.Changelog2.7.4 (2018-06-29)Sort groups by groupid. [Rotonen]2.7.3 (2018-02-12)Testing: Add group titles to the builders. [Rotonen]2.7.2 (2017-12-19)Fix get_edit_values for teams active flag. [phgross]2.7.1 (2017-11-28)Increase group title length. [phgross]2.7.0 (2017-10-27)Add helper methods and queries for team add and edit form support. [phgross]Add new model Team. [phgross]2.6.2 (2017-07-11)Fixes extend_query_with_textfilter for oracle backends, only cast on not string columns. [phgross]Fixes AdminUnits is_user_assigned query for oracle backends. [phgross]2.6.1 (2017-03-24)Let sql testing builders commit the transaction. [jone]2.6.0 (2016-10-18)Add method to filter users to service.
[deiferni]Make sure extend_query_with_textfilter works also on Integer columns.
[phgross]Made extend_query_with_textfilter case insensitive.
[phgross]2.5.0 (2016-05-02)Add assigned_groups method for the OGDSService.
It returns all assigned groups for the given userid.
[elioschmutz]2.4.2 (2016-03-17)Handle missing OGDS user in AdminUnit.is_user_assigned().
[lgraf]Add optimized method for checking if a user is assigned to anAdminUnit.
[buchi]2.4.1 (2016-03-15)Optimize performance ofassigned_users()method of anAdminUnit.
[buchi]2.4.0 (2015-12-11)Move plone-group creation to opengever.core and refactor OrgUnitBuilder to have
smaller methods that can be overwritten.
[deiferni]Also create plone groups when creating ogds-groups for org-units.
[deiferni]Add a method to query ogds groups from the service.
[deiferni]2.3.1 (2015-08-19)Add anUnicodeCoercingTextTypeDecorator for theTexttype that
always returns unicode for values fetched from the DB. This allows
us to have a guarantee to always receive unicode forTexttypes,
even when using Oracle as the backend.
The effect of this TypeDecorator should be the same as the cxOracle
dialect optioncoerce_to_unicode, which unfortunately only affectsStringcolumns.
[lgraf]2.3.0 (2015-08-03)Addactivecolumn toGroupmodel.
(Corresponding upgrade-step is in opengever.ogds.base:default)
[lgraf]Adapt imports for SQLAlchemy 1.x.
[lgraf]2.2.0 (2015-06-01)Factor out common column lengths into constants.
[lgraf]Increase several column lengths in preparation for factoring out
common column lengths to constants.
(Corresponding upgrade-step is in opengever.ogds.base:default)
[lgraf]Move extend_query_with_textfilter functionality to a separte method.
[phgross]2.1.0 (2015-03-12)Added query helperby_searchable_textto the BaseQuery.
[phgross]2.0.1 (2014-10-27)Harmonize column lengths of groupid and userid columns.
[phgross]2.0.0 (2014-10-24)Addabbreviationcolumn to admin_unit table.
[phgross]Add OGDSService which provides an entry point to query data.
[phgross, deiferni]AddOrgUnitandAdminUnitmodel definitions,OrgUnitreplacesClient.
[phgross, deiferni]Move some functionality fromopengever.coreutility functions to methds on our model classes for better encapsulation.
[phgross, deiferni]Add common base-class with query helper methods for all models.
[phgross, deiferni]Addftw.builderSQL-Builders for all model classes.
[phgross, deiferni]1.0.3 (2014-06-05)Fixed backref name of the groups_user join table.
[phgross]1.0.2 (2014-02-18)Fixed include in MANIFEST that caused previous brown bag release.
[lknoepfel]1.0.1 (2013-12-15)Moved package to GitHub.
[lknoepfel]Added helper functionalter_column_length(used by upgrade steps in og.core).
[lgraf]Increased lengths foruseridandgroupidcolumns to 255.
[lgraf]Dropped Plone 4.1 compatibility. Only 4.2 and up are supported.
[lgraf]1.0 (2011-11-17)Final release
[phgross]1.0a2 (2011-10-04)added manifest.in1.0a1 (2011-09-29)Initial release