Changeset 343:17d63dd0a8d0

Show
Ignore:
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:
3 modified

Legend:

Unmodified
Added
Removed
  • pdw/model/frbr.py

    r326 r343  
    9696from sqlalchemy.ext.associationproxy import association_proxy 
    9797import swiss 
     98import datetime 
    9899 
    99100from types import * 
     
    244245        # TODO this is a hack at the mo 
    245246        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: 
    247249            pd = 1.0 
    248250          else: 
  • pdw/pd/fast.py

    r316 r343  
    22''' 
    33import logging 
     4import datetime 
    45 
    56from pdw.pd import OLDEST_PERSON 
     
    1415    import time 
    1516 
    16     now = 2008 
     17    now = datetime.date.today().year 
    1718    pd_year = now - 70 
    1819    least_age_at_publication = 20 
  • pdw/templates/about.html

    r296 r343  
    99    <h3>Background</h3> 
    1010                <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 &ndash; 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> 
    1212 
    1313    <h3>Get Involved</h3>