Changeset 258

Show
Ignore:
Timestamp:
03/23/10 17:41:09 (3 years ago)
Author:
fabio.montefuscolo
Message:

put the lxml for decsclient; start scratch for xml upload; change css for stepmenu

Location:
trunk/clinicaltrials
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/clinicaltrials/decsclient/views.py

    r227 r258  
    22from django.http import HttpResponse 
    33from django.shortcuts import render_to_response 
    4 from xml.etree.ElementTree import ElementTree 
     4from lxml.etree import ElementTree 
    55import urllib 
    66 
     
    1919    result = tree.find("decsws_response/tree/self/term_list/term") 
    2020    if result is None: 
    21         lists = tree.findall('decsws_response/tree/term_list') 
    22         term_list = [l for l in lists if l.attrib['lang'] == lang].pop() 
    23         result = term_list.getiterator('term') 
     21        result = tree.findall('decsws_response/tree/term_list[@lang="%s"]/term' % lang) 
    2422 
    2523        json = '[%s]' % ','.join((JSON_TERM % (r.text.capitalize(),r.attrib['tree_id']) for r in result)) 
  • trunk/clinicaltrials/registry/views.py

    r246 r258  
    361361    ct = get_object_or_404(ClinicalTrial, id=int(trial_pk)) 
    362362 
    363     contact_type = {'PublicContact':PublicContact, 
    364                     'ScientificContact':ScientificContact, 
    365                     'SiteContact':SiteContact} 
    366      
    367363    contact_type = { 
    368364        'PublicContact': (PublicContact,PublicContactForm), 
  • trunk/clinicaltrials/static/css/style.css

    r248 r258  
    119119    display: inline-block; 
    120120    width: 9%; 
    121     border: 2px solid transparent; 
     121    border: 1px solid transparent; 
     122    text-align: center; 
     123} 
     124 
     125.stepmenu li.current { 
     126    border: 1px inset white; 
    122127} 
    123128