Commit Graph

846 Commits

Author SHA1 Message Date
Laurent Lasudry 7a2ed86ab4 Improve get_state to avoid errors 2019-10-25 10:06:11 +02:00
Frédéric Péters 6aae162385 let adopt_user get to the zope admin user 2014-03-24 11:31:19 +01:00
Johannes Raggam be292e7867 we should not break old habbits. no dot btw version and status! and fix the precedence of version strings, which was stated wrong here. 2014-02-14 15:10:19 +01:00
Nejc Zupan 71d99690bf Merge pull request #153 from jcerjak/master
Use getPhysicalPath instead of absolute_url_path in api.content.get()
2014-01-27 15:05:42 -08:00
Héctor Velarde 4700aaa29c Merge pull request #155 from barseghyanartur/patch-1
Update user.py
2014-01-22 09:07:23 -08:00
Artur Barseghyan c7fdf09962 Update user.py
At the moment ``isAnonymousUser`` returns <int> values. Fix to explicitly cast to boolean.
2014-01-22 10:46:39 +01:00
Adam Forsythe-Cheasley 4ecfb83a30 Merge pull request #154 from plone/attributeerror
Catch AttributeError in ``api.content.get``
2013-12-23 03:11:08 -08:00
Matthew Sital-Singh f8dac9c4c7 Catch AttributeError in ``api.content.get``
unrestrictedTraverse raises an AttributeError if the first part of the path can be traversed. If we are catching KeyError here we should do the same for AttributeError.
2013-12-20 17:16:12 +00:00
jcerjak 1070984775 use getPhysicalPath instead of absolute_url_path, refs #152 2013-12-16 19:01:12 +01:00
Johannes Raggam d0104546ba indentation clarification 2013-12-03 12:41:45 +01:00
Nejc Zupan 2a8027faf0 Merge pull request #151 from plone/unicodeerror
Prevent UnicodeDecodeErrors from being swallowed
2013-11-26 02:29:33 -08:00
Matthew Sital-Singh 749584334f Add test to ensure UnicodeDecodeErrors not swallowed
This test registers a title indexer that forces a UnicodeException during the creation of an content item, and checks that it is not swallowed by api.content.create
2013-11-26 09:59:48 +00:00
Matthew Sital-Singh 37fcb36b8c Update exception syntax 2013-11-26 09:57:42 +00:00
Matthew Sital-Singh 465315a7f6 Prevent UnicodeDecodeErrors from being swallowed
UnicodeDecodeError is a subclass of ValueError, so these exceptions were being swallowed by the InvalidParameterError handling.
2013-11-25 16:34:59 +00:00
Nejc Zupan af5719b40c Merge pull request #148 from plone/env-versions
Add api.env.plone_version() and api.env.zope_version()
2013-11-05 23:47:02 -08:00
Nejc Zupan edb226ae3b Merge pull request #147 from plone/local-roles
api.user.get_roles(): add the option to ignore inherited roles
2013-11-05 23:45:28 -08:00
Johannes Raggam 55ac152d97 correct url markup 2013-11-06 01:07:48 +01:00
Johannes Raggam 6c2d802b5b update on versioning scheme 2013-11-06 01:06:23 +01:00
hvelarde d2ec150999 Refactor tests of env.plone_version() and env.zope_version() using regular expressions
And now we have 2 problems
2013-10-17 15:45:30 -03:00
hvelarde 16bc0c731f Add api.env.plone_version() and api.env.zope_version() (refs. #126) 2013-10-17 10:39:59 -03:00
hvelarde e5c03ea014 Do QA on current development branch 2013-10-17 09:44:33 -03:00
Cillian de Róiste 0889c76959 Merge branch 'master' into local-roles 2013-10-14 13:33:43 +02:00
Cillian de Róiste 654f749ff7 api.user.get_roles(): add the option to ignore inherited roles 2013-10-14 13:31:03 +02:00
Matthew Wilkes d5da29ea29 Don't force distribute in bootstrap, it's broken 2013-10-14 10:23:56 +01:00
hvelarde 527b415f6d Reduce changelog verbosity 2013-10-13 09:09:31 -03:00
Nejc Zupan f115bb2035 release 1.1.0 2013-10-12 02:06:00 -03:00
Nejc Zupan 06755d873e Merge pull request #145 from plone/extended-travis
Implement continuous intregration over Plone 4.0 and Plone 4.1
2013-10-11 21:51:10 -07:00
hvelarde 83e72fe14d A number of improvements to how we run builds on Travis
Among them:
* add Plone 4.0 and 4.1 under Python 2.6 to the testing matrix
* do not run Plone 4.3 with Python 2.6 and Plone 4.2 with Python 2.7 -- this
  reduces the number of builds but keeps basically the same coverage
* only upload coverage info to Coveralls.io on one job per build, not on all
  jobs
* upgrade zc.buildout to 1.7.1 (was 1.6.3)
* use Plone 4.3 by default (was 4.2)
2013-10-11 23:00:22 -03:00
Nejc Zupan 3aef6bd9d8 declare supported Plone versions 2013-10-11 23:00:22 -03:00
hvelarde dfd6b2d233 Add package classifiers to list Plone versions supported 2013-10-11 14:11:17 -03:00
Nejc Zupan ab548a84bd release 1.1.0-rc.1 2013-10-10 19:10:42 -03:00
Nejc Zupan 73d73d3c4e fix README.rst so it renders correctly on PyPI 2013-10-10 18:55:50 -03:00
Nejc Zupan 0eabad14f6 we need to increase the minor version, since we introduced new api methods 2013-10-10 18:11:37 -03:00
Nejc Zupan 7a59298933 api.plone.org/foo redirects now work, let's use them 2013-10-10 18:08:46 -03:00
Nejc Zupan 43a58d6807 Move CHANGES.rst to root, set title to Changelog 2013-10-10 17:07:51 -03:00
Nejc Zupan feef0aedeb no longer needed as we no longer build on RTD 2013-10-10 16:57:40 -03:00
Nejc Zupan ebb9b5571f add trailing newlines 2013-10-10 16:57:14 -03:00
hvelarde f235c077af Add missing MANIFEST.in file 2013-10-09 21:44:18 -03:00
Nejc Zupan e3820cf50a back to development 2013-10-09 21:35:30 -03:00
Nejc Zupan 1e03ec62a3 release 1.0.0-rc.3 2013-10-09 21:33:32 -03:00
Nejc Zupan cf7495ffef better egg long_description 2013-10-09 21:31:40 -03:00
Nejc Zupan 243230d0b0 release 1.0.0-rc.2 2013-10-09 21:25:21 -03:00
Nejc Zupan 05b72dd7c8 update Changelog 2013-10-09 21:21:54 -03:00
Nejc Zupan 78fb7b01c8 Merge pull request #142 from plone/english-fixes
English fixes
2013-10-09 17:16:04 -07:00
Nejc Zupan 43b580ab69 garden 2013-10-09 21:11:24 -03:00
Nejc Zupan ececd691bf not needed? 2013-10-09 21:06:23 -03:00
Nejc Zupan 137d49ecdb point to correct pages 2013-10-09 20:45:17 -03:00
cewing 76f463f51d fix wording per @zupo 2013-10-09 20:45:17 -03:00
cewing af5b91b0e9 use initial-caps version of Dexterity and Archetypes names by convention (per @zupo) 2013-10-09 20:45:17 -03:00
cewing dbcd69c887 fix typo per @zupo 2013-10-09 20:45:17 -03:00