- Changed: Updated bundled requests package to 2.9.1
- Changed: Issue #124 (
project.url
now usesidentifier
rather thanid
to generate url for the project resource) - Fixed: Issue #122 (
ValidationError
for empty custom field values was possible under some circumstances with Redmine < 2.5.0) - Fixed: Issue #112 (
UnicodeEncodeError
on Python 2 ifresource_id
was ofunicode
type) (thanks to Digenis)
- Added: Documented support for new fields and values in User, Issue and IssueRelation resources
- Added: Issue #109 (Smart imports for vendored packages (see docs for details)
- Added: Issue #115 (File upload support for WikiPage resource)
- Added: Requests is now embedded into Python-Redmine
- Added: Python-Redmine is now embeddable to other libraries
- Fixed: Previous release was broken on PyPI
- Added: Issue #108 (Tests are now built-in into source package distributed via PyPI)
- Added: wheel support
- Added: Issue #93 (
JSONDecodeError
exception now contains aresponse
attribute which can be inspected to identify the cause of the exception) - Added: Issue #98 (Support for setting WikiPage resource parent title and converting parent attribute to Resource object instead of being a dict)
- Fixed: Issue #90 (Python Redmine fails to install on systems with LC_ALL=C) (thanks to spikergit1)
- Fixed: Issue #85 (Python Redmine was trying to convert field to date/datetime even when it shouldn't, i.e. if a field looked like YYYY-MM-DD but wasn't actually a date/datetime field, e.g. wiki page title or issue subject)
- Added: PyPy2/3 is now officially supported
- Added: Introduced
enabled_modules
on demand include in Project resource - Fixed: Issue #78 (Redmine <2.5.2 returns only single tracker instead of a list of all available trackers when requested from a CustomField resource which caused an Exception in Python Redmine, see this for details)
- Fixed: Issue #80 (If a project is read-only or doesn't have CRM plugin enabled, an attempt to add/remove Contact resource to/from it will lead to improper error message)
- Fixed: Issue #81 (Contact's
resource
tag_list
attribute was always splitted into single chars) (thanks to Alexander Loechel)
- Fixed: Issue #72 (If an exception is
raised during JSON decoding process, it should be catched and reraised as Python Redmine's own
exception, i.e
redmine.exceptions.JSONDecodeError
) - Fixed: Issue #76 (It was impossible to retrieve more than 100 resources for resources which don't support limit/offset natively by Redmine, i.e. this functionality is emulated by Python Redmine, e.g. WikiPage, Groups, Roles etc)
- Fixed: Issue #55 (TypeError was raised during processing validation errors from Redmine when one of the errors was returned as a list)
- Fixed: Issue #59 (Raise ForbiddenError when a 403 is encountered) (thanks to Rick Harris)
- Fixed: Issue #64 (Redmine and Resource classes weren't picklable) (thanks to Rick Harris)
- Fixed: A ResourceSet object with a limit=100, actually returned 125 Resource objects
- Fixed: Issue #50 (IssueJournal's
notes
attribute was converted to Note resource by mistake, bug was introduced in v1.0.0)
- Added: Support for the CRM plugin resources:
- Added: Introduced new relations for the following resource objects:
- Project - time_entries, deals, contacts and deal_categories relations
- User - issues, time_entries, deals and contacts relations
- Tracker - issues relation
- IssueStatus - issues relation
- Added: Introduced a
values()
method in a ResourceSet which returns ValuesResourceSet - a ResourceSet subclass that returns dictionaries when used as an iterable, rather than resource-instance objects (see docs for details) - Added: Introduced
update()
anddelete()
methods in a ResourceSet object which allow to bulk update or bulk delete all resources in a ResourceSet object (see docs for details) - Fixed: It was impossible to use ResourceSet's
get()
andfilter()
methods with WikiPage resource - Fixed: Several small fixes and enhancements here and there
- Added: Introduced support for file downloads (see docs for details)
- Added: Introduced new
_Resource.requirements
class attribute where all Redmine plugins required by resource should be listed (preparations to support non-native resources) - Added: New exceptions:
- ResourceRequirementsError
- Fixed: It was impossible to set a custom field of date/datetime type using date/datetime Python objects
- Fixed: Issue #46
(A UnicodeEncodeError was raised in Python 2.x while trying to access a
url
property of a WikiPage resource if it contained non-ascii characters)
- Added: Support for anonymous Attachment resource (i.e. attachment with
id
attr only) - Fixed: Issue #42 (It was
impossible to create a Project resource via
new()
method)
- Fixed: Issue #39 (It was
impossible to save custom_fields in User resource via
new()
method)
- Added: ResourceSet's
get()
method now supports adefault
keyword argument which is returned when a requested Resource can't be found in a ResourceSet and defaults toNone
, previously this was hardcoded toNone
- Added: It is now possible to use
getattr()
with default value without raising aResourceAttrError
when calling non-existent resource attribute, see Issue #30 for details (thanks to hsum) - Fixed: Issue #31 (Unlimited recursion was possible in some situations when on demand includes were used)
- Added: New exceptions:
- RequestEntityTooLargeError
- UnknownError
- Fixed: Issue #27 (Project and
Issue resources
parent
attribute was returned as a dict instead of being converted to Resource object)
- Added: Introduced the detection of conflicting packages, i.e. if a conflicting package is found (PyRedmineWS at this time is the only one), the installation procedure will be aborted and a warning message will be shown with the detailed description of the problem
- Added: Introduced new
_Resource._members
class attribute where all instance attributes which are not started with underscore should be listed. This will resolve recursion issues in custom resources because of how__setattr__()
works in Python - Changed:
_Resource.attributes
renamed to_Resource._attributes
- Fixed: Python Redmine was unable to upload any binary files
- Fixed: Issue #20 (Lowered Requests version requirements. Python Redmine now requires Requests starting from 0.12.1 instead of 2.1.0 in previous versions)
- Fixed: Issue #23 (File uploads
via
update()
method didn't work)
- Fixed: Issue #19 (Resources
obtained via
filter()
andall()
methods have incomplete url attribute) - Fixed: Redmine server url with forward slash could cause errors in rare cases
- Fixed: Python Redmine was incorrectly raising
ResourceAttrError
when trying to callrepr()
on a News resource
- Fixed: Issue #16 (When a resource
was created via a
new()
method, the next resource created after that inherited all the attribute values of the previous resource)
- Added: WikiPage resource now automatically requests all of it's available attributes from Redmine in case if some of them are not available in an existent resource object
- Added: Support for setting date/datetime resource attributes using date/datetime Python objects
- Added: Support for using date/datetime Python objects in all ResourceManager methods, i.e.
new()
,create()
,update()
,delete()
,get()
,all()
,filter()
- Fixed: Issue #14 (Python Redmine
was incorrectly raising
ResourceAttrError
when trying to callrepr()
,str()
andint()
on resources, created vianew()
method)
- Fixed: Project resource
status
attribute was converted to IssueStatus resource by mistake
- Fixed: Issue #10 (Python
Redmine was incorrectly raising
ResourceAttrError
while creating some resources vianew()
method)
- Added:
Redmine.auth()
shortcut for the case if we just want to check if user provided valid auth credentials, can be used for user authentication on external resource based on Redmine user database (see docs for details) - Fixed:
JSONDecodeError
was raised in some Redmine versions during some create/update operations (thanks to 0x55aa) - Fixed: User resource
status
attribute was converted to IssueStatus resource by mistake
- Added: An ability to create custom resources which allow to easily redefine the behaviour of existing resources (see docs for details)
- Added: An ability to add/remove watcher to/from issue (see docs for details)
- Added: An ability to add/remove users to/from group (see docs for details)
- Added: New exceptions:
- ConflictError
- ReadonlyAttrError
- ResultSetTotalCountError
- CustomFieldValueError
- Added: Update functionality via
update()
andsave()
methods for resources (see docs for details):- User
- Group
- IssueCategory
- Version
- TimeEntry
- ProjectMembership
- WikiPage
- Project
- Issue
- Added: Limit/offset support via
all()
andfilter()
methods for resources that doesn't support that feature via Redmine:- IssueRelation
- Version
- WikiPage
- IssueStatus
- Tracker
- Enumeration
- IssueCategory
- Role
- Group
- CustomField
- Added: On demand includes, e.g. in addition to
redmine.group.get(1, include='users')
users for a group can also be retrieved on demand viagroup.users
if include wasn't set (see docs for details) - Added:
total_count
attribute to ResourceSet object which holds the total number of resources for the current resource type available in Redmine (thanks to Andrei Avram) - Added: An ability to return
None
instead of raising aResourceAttrError
for all or selected resource objects viaraise_attr_exception
kwarg on Redmine object (see docs for details or Issue #6) - Added:
pre_create()
,post_create()
,pre_update()
,post_update()
resource object methods which can be used to execute tasks that should be done before/after creating/updating the resource throughsave()
method - Added: Allow to create resources in alternative way via
new()
method (see docs for details) - Added: Allow daterange TimeEntry resource filtering via
from_date
andto_date
keyword arguments (thanks to Antoni Aloy) - Added: An ability to retrieve Issue version via
version
attribute in addition tofixed_version
to be more obvious - Changed: Documentation for resources rewritten from scratch to be more understandable
- Fixed: Saving custom fields to Redmine didn't work in some situations
- Fixed: Issue's
fixed_version
attribute was retrieved as dict instead of Version resource object - Fixed: Resource relations were requested from Redmine every time instead of caching the result after first request
- Fixed: Issue #2 (limit/offset as keyword arguments were broken)
- Fixed: Issue #5 (Version
resource
status
attribute was converted to IssueStatus resource by mistake) (thanks to Andrei Avram) - Fixed: A lot of small fixes, enhancements and refactoring here and there
- Added: An ability to pass Requests parameters as a dictionary via
requests
keyword argument on Redmine initialization, i.e. Redmine('http://redmine.url', requests={}). - Fixed: Issue #1 (unable to connect to Redmine server with invalid ssl certificate).
- Added: Delete functionality via
delete()
method for resources (see docs for details):- User
- Group
- IssueCategory
- Version
- TimeEntry
- IssueRelation
- ProjectMembership
- WikiPage
- Project
- Issue
- Changed: ResourceManager
get()
method now raises aValidationError
exception if required keyword arguments aren't passed
- Added: New exceptions:
- ServerError
- NoFileError
- ValidationError
- VersionMismatchError
- ResourceNoFieldsProvidedError
- ResourceNotFoundError
- Added: Create functionality via
create()
method for resources (see docs for details):- User
- Group
- IssueCategory
- Version
- TimeEntry
- IssueRelation
- ProjectMembership
- WikiPage
- Project
- Issue
- Added: File upload support, see
upload()
method in Redmine class - Added: Integer representation to all resources, i.e.
__int__()
- Added: Informal string representation to all resources, i.e.
__str__()
- Changed: Renamed
version
attribute toredmine_version
in all resources to avoid name intersections - Changed: ResourceManager
get()
method now raises aResourceNotFoundError
exception if resource wasn't found instead of returning None in previous versions - Changed: reimplemented fix for
__repr__()
from 0.1.1 - Fixed: Conversion of issue priorities to enumeration resource object didn't work
- Added: Python 2.6 support
- Changed: WikiPage resource
refresh()
method now automatically determines it's project_id - Fixed: Resource representation, i.e.
__repr__()
, was broken in Python 2.7 - Fixed:
dir()
call on a resource object didn't work in Python 3.2
- Initial release