Changeset 343:17d63dd0a8d0
- Timestamp:
- 04/28/10 19:21:21 (4 months ago)
- Author:
- acracia
- Branch:
- default
- Tags:
- tip
- Message:
-
persons: now the pd gets calculated with the datetime.today object, and shows pd status (default jurisdiction: uk)
- Location:
- pdw
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r326
|
r343
|
|
| 96 | 96 | from sqlalchemy.ext.associationproxy import association_proxy |
| 97 | 97 | import swiss |
| | 98 | import datetime |
| 98 | 99 | |
| 99 | 100 | from types import * |
| … |
… |
|
| 244 | 245 | # TODO this is a hack at the mo |
| 245 | 246 | if self.death_date_ordered: |
| 246 | | if self.death_date_ordered < 1938: |
| | 247 | pdyear = datetime.date.today().year - 70 |
| | 248 | if self.death_date_ordered < pdyear: |
| 247 | 249 | pd = 1.0 |
| 248 | 250 | else: |
-
|
r316
|
r343
|
|
| 2 | 2 | ''' |
| 3 | 3 | import logging |
| | 4 | import datetime |
| 4 | 5 | |
| 5 | 6 | from pdw.pd import OLDEST_PERSON |
| … |
… |
|
| 14 | 15 | import time |
| 15 | 16 | |
| 16 | | now = 2008 |
| | 17 | now = datetime.date.today().year |
| 17 | 18 | pd_year = now - 70 |
| 18 | 19 | least_age_at_publication = 20 |
-
|
r296
|
r343
|
|
| 9 | 9 | <h3>Background</h3> |
| 10 | 10 | <p>The Public Domain Works DB is an <a href="http://opendefinition.org/">open</a> registry of artistic works that are in the public domain. It is currently focused on books and sound recordings – EU countries are currently considering a term extension for sound recordings which would have a dramatic impact on the size of the public domain. In the future it will will expand to cover all types of cultural works which are covered by copyright.</p> |
| 11 | | <p>The a project was originally created by the <a href="http://www.okfn.org/">Open Knowledge Foundation</a>, <a href="http://www.freeculture.org.uk/">Free Culture UK</a> and the <a href="http://www.openrightsgroup.org/">Open Rights Group</a>. The project is currently being managed by the <a href="http://wiki.okfn.org/wg/publicdomain/">Open Knowledge Foundation's Public Domain Working Group</a>.</p> |
| | 11 | <p>The a project was originally created in 2005 by the <a href="http://www.okfn.org/">Open Knowledge Foundation</a>, <a href="http://www.freeculture.org.uk/">Free Culture UK</a> and the <a href="http://www.openrightsgroup.org/">Open Rights Group</a>. The project is currently being managed by the <a href="http://wiki.okfn.org/wg/publicdomain/">Open Knowledge Foundation's Public Domain Working Group</a>.</p> |
| 12 | 12 | |
| 13 | 13 | <h3>Get Involved</h3> |