Project

General

Profile

auquo-frontofficeurl.diff

Frédéric Péters (de retour le 27 mai), 27 February 2012 02:52 PM

Download (1.29 KB)

View differences:


  

extra/modules/announces.py (copie de travail)
101 101
        return entry
102 102

  
103 103
    def get_url(self):
104
        from quixote import get_request
105
        return '%s://%s%sannounces/%s/' % (
106
                get_request().get_scheme(), get_request().get_server(),
107
                get_publisher().get_root_url(), self.id)
104
        return '%s/announces/%s/' % (get_publisher().get_frontoffice_url(), self.id)
108 105

  
109 106
    def store(self):
110 107
        self.modification_time = time.gmtime()
extra/modules/events.py (copie de travail)
141 141
        return r.getvalue()
142 142

  
143 143
    def get_url(self):
144
        from quixote import get_request
145
        return '%s://%s%sagenda/events/%s/' % (
146
                get_request().get_scheme(), get_request().get_server(),
147
                get_publisher().get_root_url(), self.id)
144
        return '%s/agenda/events/%s/' % (get_publisher().get_frontoffice_url(), self.id)
148 145

  
149

  
150 146
    def get_atom_entry(self):
151 147
        from pyatom import pyatom
152 148
        entry = pyatom.Entry()