Last change
on this file since 64:7a05243e2fc0 was 60:ec70c7dc68b6, checked in by Borja Lopez <borja@…>, 9 years ago |
Improvements on the code to push stamps to a remote collector server:
- The collector server returns now a list of exposed api methods/urls
after logging in. That means we do not need to set the url to the
listener anymore (stamper can learn from the collector's response)
- The collector handles fine now push actions to add/append stamps to
its database, returning the number of stamps that are added, updated
or deleted to/from the database. That means we can show a bit more
information to the user after the push
- The responses from the collector are json-encoded, so now we try to
de-serialize the data, showing an error if that is not posible
(badly-formatted json, error/exception, etc).
|
File size:
342 bytes
|
Line | |
---|
1 | #
|
---|
2 | # stamper.conf - Stamper configuration file
|
---|
3 | #
|
---|
4 |
|
---|
5 | [stamps]
|
---|
6 | path = ~/.workstamps.json
|
---|
7 | date_format = %%Y-%%m-%%d
|
---|
8 | time_format = %%H:%%M:%%S
|
---|
9 | datetime_format = %%Y-%%m-%%d %%H:%%M
|
---|
10 |
|
---|
11 | [sum]
|
---|
12 | hours_day = 8
|
---|
13 |
|
---|
14 | [charts]
|
---|
15 | path = ~/.workstamps-charts
|
---|
16 |
|
---|
17 | [collector]
|
---|
18 | base_url = http://localhost:8000
|
---|
19 | login_path = /stamper/login/
|
---|
20 | user = CHANGEME
|
---|
21 | password = SECRET
|
---|
Note:
See
TracBrowser
for help on using the repository browser.