web/test/unittest_views_xmlrss.py
changeset 7554 fdace9d67d96
parent 7553 935423529f45
child 9807 958fc84a730f
equal deleted inserted replaced
7553:935423529f45 7554:fdace9d67d96
    12   <login>admin</login>
    12   <login>admin</login>
    13   <upassword/>
    13   <upassword/>
    14   <firstname/>
    14   <firstname/>
    15   <surname/>
    15   <surname/>
    16   <last_login_time/>
    16   <last_login_time/>
    17   <creation_date>%(date)s</creation_date>
    17   <creation_date>%(cdate)s</creation_date>
    18   <modification_date>%(date)s</modification_date>
    18   <modification_date>%(mdate)s</modification_date>
    19   <tags role="object">
    19   <tags role="object">
    20   </tags>
    20   </tags>
    21   <in_group role="subject">
    21   <in_group role="subject">
    22     <CWGroup eid="%(group_eid)s" cwuri="None%(group_eid)s"/>
    22     <CWGroup eid="%(group_eid)s" cwuri="None%(group_eid)s"/>
    23   </in_group>
    23   </in_group>
    25     <State eid="%(state_eid)s" cwuri="None%(state_eid)s" name="activated"/>
    25     <State eid="%(state_eid)s" cwuri="None%(state_eid)s" name="activated"/>
    26   </in_state>
    26   </in_state>
    27   <use_email role="subject">
    27   <use_email role="subject">
    28   </use_email>
    28   </use_email>
    29 </CWUser>
    29 </CWUser>
    30 ''' % {'date': SERIALIZERS['Datetime'](req.user.creation_date),
    30 ''' % {'cdate': SERIALIZERS['Datetime'](req.user.creation_date),
       
    31        'mdate': SERIALIZERS['Datetime'](req.user.modification_date),
    31        'state_eid': req.user.in_state[0].eid,
    32        'state_eid': req.user.in_state[0].eid,
    32        'group_eid': req.user.in_group[0].eid})
    33        'group_eid': req.user.in_group[0].eid})
    33 
    34 
    34 
    35 
    35 if __name__ == '__main__':
    36 if __name__ == '__main__':