Mercurial > p > roundup > code
annotate website/www/code.txt @ 5705:457fc482e6b1
Method PUT: ignore specification of protected properties which can not
be set. Filtering them out of the payload list. This lets the result
of a get using:
class/id?@protected=true&@verbose=0
be used as input to a PUT operation without having to strip the
protected properties.
Note this does not raise an error if the PUT protected property is
different from the value in the db. If the property is different but
the etag/if-match passes, the user attempted to set the protected
property and this should result in an error, but will not with this
patch.
Method DELETE class/id/attribute: raise error when trying to delete
protected or required attribute/property. Raise UsageError
when attribute doesn't exist.
Method PATCH class/id:
raise error when trying to replace/remove protected attribute/property
raise error when trying to remove required attribute/property
Catch KeyError at top level and turn into 400 error.
If payload has an attribute/property that does not exist, raise
UsageError which becomes a 400 error.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 11 Apr 2019 20:54:39 -0400 |
| parents | c36ad0ba6aa3 |
| children | 45e8d10a9609 |
| rev | line source |
|---|---|
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
1 Code |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
2 ==== |
|
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
3 |
|
5018
7cfd30cc8cfa
website: Reword code section, explain are why using SF and
anatoly techtonik <techtonik@gmail.com>
parents:
5017
diff
changeset
|
4 Project history is maintained in `CHANGES.txt <https://sourceforge.net/p/roundup/code/ci/tip/tree/CHANGES.txt>`_ |
|
7cfd30cc8cfa
website: Reword code section, explain are why using SF and
anatoly techtonik <techtonik@gmail.com>
parents:
5017
diff
changeset
|
5 file in code repository of Roundup, which can also be viewed online |
|
7cfd30cc8cfa
website: Reword code section, explain are why using SF and
anatoly techtonik <techtonik@gmail.com>
parents:
5017
diff
changeset
|
6 through SourceForge `web interface <https://sourceforge.net/p/roundup/code/>`_. |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
7 |
|
5057
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
8 Get sources |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
9 ----------- |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
10 |
|
5018
7cfd30cc8cfa
website: Reword code section, explain are why using SF and
anatoly techtonik <techtonik@gmail.com>
parents:
5017
diff
changeset
|
11 Official **read-only access** to Mercurial repository is provided through :: |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
12 |
|
5017
98344ba5e157
website: Update "getting code" documentation
anatoly techtonik <techtonik@gmail.com>
parents:
4829
diff
changeset
|
13 hg clone http://hg.code.sf.net/p/roundup/code roundup |
|
4035
e4950073153f
Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff
changeset
|
14 |
|
5018
7cfd30cc8cfa
website: Reword code section, explain are why using SF and
anatoly techtonik <techtonik@gmail.com>
parents:
5017
diff
changeset
|
15 **Read/write access** requires SSH password or SSH key |
|
7cfd30cc8cfa
website: Reword code section, explain are why using SF and
anatoly techtonik <techtonik@gmail.com>
parents:
5017
diff
changeset
|
16 authorization (see `SourceForge.net docs for details |
|
4775
d00a3ede67e4
Changing www/code.txt towards new SF paths.
Bernhard Reiter <bernhard@intevation.de>
parents:
4596
diff
changeset
|
17 <https://sourceforge.net/p/forge/documentation/Mercurial/>`_) :: |
|
4552
68d647848ffc
nicer formatting
Richard Jones <richard@users.sourceforge.net>
parents:
4549
diff
changeset
|
18 |
|
5017
98344ba5e157
website: Update "getting code" documentation
anatoly techtonik <techtonik@gmail.com>
parents:
4829
diff
changeset
|
19 hg clone ssh://USERNAME@hg.code.sf.net/p/roundup/code roundup |
|
4552
68d647848ffc
nicer formatting
Richard Jones <richard@users.sourceforge.net>
parents:
4549
diff
changeset
|
20 |
|
5017
98344ba5e157
website: Update "getting code" documentation
anatoly techtonik <techtonik@gmail.com>
parents:
4829
diff
changeset
|
21 You also need to be added as a Roundup developer for write access - ask |
|
98344ba5e157
website: Update "getting code" documentation
anatoly techtonik <techtonik@gmail.com>
parents:
4829
diff
changeset
|
22 for it on the :doc:`roundup-devel list <contact>`. |
|
5057
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
23 |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
24 Run demo |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
25 -------- |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
26 |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
27 Roundup doesn't need any dependencies and works out of the box. Demo |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
28 is accessible at http://localhost:8917/demo/ by default :: |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
29 |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
30 cd roundup |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
31 python demo.py |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
32 |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
33 Execute tests |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
34 ------------- |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
35 :: |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
36 |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
37 python run_tests.py |
|
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
38 |
|
5058
c36ad0ba6aa3
www: Fix link to README.txt
anatoly techtonik <techtonik@gmail.com>
parents:
5057
diff
changeset
|
39 See repository `README.txt <https://sourceforge.net/p/roundup/code/ci/tip/tree/README.txt>`_ |
|
5057
d3efcaa0d6ff
www: Extend code instructions with demo and test commands
anatoly techtonik <techtonik@gmail.com>
parents:
5032
diff
changeset
|
40 for more info. |
