Changeset 4494 for MILK


Ignore:
Timestamp:
26/11/08 13:29:20 (11 years ago)
Author:
cbyrom
Message:

Add new methods to lookup simple URLs and vocab term urls. NB, problems were encountered using the checkURL method, which uses httplib, when running with proxy server. Implement usage of new methods + fix small bug with keeping too many related links + tidy up unused imports.

Location:
MILK/trunk/milk_server/milk_server/controllers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/controllers/atom_editor/editatom.py

    r4491 r4494  
    305305                                        selected=c.atom.subtype) 
    306306         
    307          
    308307        self.addRelatedLinksDropDowns() 
    309308 
     
    426425                        link.href = inputs.get(keyStem + '.href') or "" 
    427426                        link.title = inputs.get(keyStem + '.title') or "" 
     427                         
     428                        if not link.hasValue(): 
     429                            continue 
    428430                             
    429431                        logging.info("Adding new online reference info") 
  • MILK/trunk/milk_server/milk_server/controllers/visualise/selectedItems.py

    r4487 r4494  
    1414from paste.request import parse_querystring 
    1515from milk_server.models.selectedItem import SelectedItem 
    16 import copy, urllib, logging 
     16import copy, logging 
    1717 
    1818class SelecteditemsController(BaseController): 
Note: See TracChangeset for help on using the changeset viewer.