Ignore:
Timestamp:
24/11/08 17:11:49 (12 years ago)
Author:
cbyrom
Message:

Tidy up imports and use proper config object for ndgObject initialisation.

File:
1 edited

Legend:

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

    r4478 r4486  
    55 @author: C Byrom, Tessella Sep 2008 
    66''' 
    7 from milk_server.lib.base import * 
    8 from milk_server.models.form import * 
    9 from ndgUtils import ndgObject 
     7import logging, traceback, sys 
    108from paste.request import parse_querystring 
    11 from milk_server.lib import mailer 
    12 from milk_server.lib.ndgInterface import interface  
    139from xml.parsers.expat import ExpatError 
    14 import logging, traceback, sys 
    15 from ndgUtils.models.Atom import Atom, Person, Link, Category, ValidationError 
    1610from formencode import Invalid 
    1711from genshi.filters import HTMLFormFiller 
    1812from genshi import HTML 
     13from milk_server.lib.base import * 
     14from milk_server.models.form import * 
     15from milk_server.lib import mailer 
     16from milk_server.lib.ndgInterface import interface  
     17import milk_server.lib.htmlUtilities as utils 
     18from milk_server.lib.atomutilities import savePageAndRender 
     19from ndgUtils import ndgObject 
     20from ndgUtils.models.Atom import Atom, Person, Link, Category, ValidationError 
    1921import ndgUtils.models.existdbclient as edc 
    2022from ndgUtils.models.MolesEntity import MolesEntity as ME 
    2123from ndgUtils.models.utilities import escapeSpecialCharacters 
    2224from ndgUtils.vocabtermdata import VocabTermData as VTD 
    23 import milk_server.lib.htmlUtilities as utils 
    2425from granulatorTool.granulite import granulite as granulite 
    25 from milk_server.lib.atomutilities import savePageAndRender 
    2626 
    2727class EditatomController(BaseController): 
     
    3939        if uri: 
    4040            try: 
    41                 self.ndgObject = ndgObject(uri, config=self.cf.config) 
     41                self.ndgObject = ndgObject(uri, config=self.cf) 
    4242            except ValueError,e: 
    4343                return e 
     
    311311        ''' 
    312312        logging.info("Setting up atom edit template") 
    313  
    314313        self.prepareEditForm(uri) 
    315314 
Note: See TracChangeset for help on using the changeset viewer.