Dear Gurus, 
I stubled upon one strange problem. I can not retrieve
'attach_href' value from hdf object. 
here is a code that demostrates the problem. 

def execute(hdf, txt, env):
       return  hdf.getValue('wiki.attach_href','')
it always returns empty string, however in hdfdump I
can see this value. In fact I can retrieve any value
above page_html. 
Values like  attach_href, action, current_href,
page_html always return empty string. I am quite
newbie in Python and trac hacking. I was wondering if
someone can shed some ligth on my problem . 

Thank you very much,

Boris 
  


hdf {
  loadpaths {
    0 = /home/projects/pair/trac/templates
    1 = /usr/share/trac/templates
  }
}
trac {
  version = 0.9b2
  time = 03/09/06 11:24:02 {
    gmt = Thu, 9 Mar 2006 16:24:02 GMT
  }
  href {
    wiki = /pair/wiki
    search = /pair/search
    logout = /pair/logout
    newticket = /pair/newticket
    timeline = /pair/timeline
    settings = /pair/settings
    about = /pair/about
    roadmap = /pair/roadmap
    about_config = /pair/about/config
    milestone = /pair/milestone
    report = /pair/report
    query = /pair/query
    login = /pair/login
    homepage = http://trac.edgewall.com/
    browser = /pair/browser/
  }
  authname = ioffe
  acl {
    MILESTONE_DELETE = 1
    TICKET_CREATE = 1
    TICKET_MODIFY = 1
    REPORT_VIEW = 1
    REPORT_ADMIN = 1
    CONFIG_VIEW = 1
    TICKET_VIEW = 1
    TICKET_CHGPROP = 1
    TIMELINE_VIEW = 1
    MILESTONE_VIEW = 1
    WIKI_DELETE = 1
    REPORT_MODIFY = 1
    TICKET_ADMIN = 1
    WIKI_VIEW = 1
    MILESTONE_MODIFY = 1
    TICKET_APPEND = 1
    REPORT_CREATE = 1
    ROADMAP_ADMIN = 1
    FILE_VIEW = 1
    REPORT_SQL_VIEW = 1
    BROWSER_VIEW = 1
    TRAC_ADMIN = 1
    WIKI_MODIFY = 1
    SEARCH_VIEW = 1
    WIKI_CREATE = 1
    MILESTONE_CREATE = 1
    WIKI_ADMIN = 1
    ROADMAP_VIEW = 1
    CHANGESET_VIEW = 1
    REPORT_DELETE = 1
    LOG_VIEW = 1
  }
}
project {
  url = http://byteeasy.com/pair/
  footer = Visit the Trac open source project at<br
/><a
href="http://trac.edgewall.com/";>http://trac.edgewall.com/</a>
  name = pairtrading
  name_encoded = pairtrading
  descr = Paris Trading Project
}
base_url = http://byteeasy.com/pair
base_host = http://byteeasy.com
cgi_location = /pair
args {
  hdfdump = 1
}
HTTP {
  PathInfo = /wiki/TestTest
}
chrome {
  href = /pair/chrome
  links {
    start {
      0 {
        href = /pair/wiki
      }
    }
    search {
      0 {
        href = /pair/search
      }
    }
    help {
      0 {
        href = /pair/wiki/TracGuide
      }
    }
    stylesheet {
      0 {
        href = /pair/chrome/common/css/trac.css
        type = text/css
      }
      1 {
        href = /pair/chrome/common/css/wiki.css
        type = text/css
      }
    }
    icon {
      0 {
        href = /pair/chrome/common/trac.ico
        type = image/x-icon
      }
    }
    shortcut icon {
      0 {
        href = /pair/chrome/common/trac.ico
        type = image/x-icon
      }
    }
    alternate {
      0 {
        href = /pair/wiki/TestTest?format=txt
        type = text/plain
        title = Plain Text
      }
    }
  }
  logo {
    src_abs = 
    src = /pair/chrome/common/trac_banner.png
    height = 73
    width = 236
    link = http://trac.edgewall.com/
    alt = Trac
  }
  nav {
    metanav {
      login = logged in as ioffe
      logout = <a href="/pair/logout">Logout</a>
      settings = <a href="/pair/settings">Settings</a>
      help = <a href="/pair/wiki/TracGuide"
accesskey="6">Help/Guide</a>
      about = <a href="/pair/about"
accesskey="9">About Trac</a>
    }
    mainnav {
      wiki = <a href="/pair/wiki"
accesskey="1">Wiki</a> {
        active = 1
      }
      timeline = <a href="/pair/timeline"
accesskey="2">Timeline</a>
      roadmap = <a href="/pair/roadmap"
accesskey="3">Roadmap</a>
      browser = <a href="/pair/browser">Browse
Source</a>
      tickets = <a href="/pair/report">View
Tickets</a>
      newticket = <a href="/pair/newticket"
accesskey="7">New Ticket</a>
      search = <a href="/pair/search"
accesskey="4">Search</a>
    }
  }
}
htdocs_location = /pair/chrome/common/
title = TestTest
wiki {
  readonly = 1
  version = 6
  page_name = TestTest
  exists = 1
  page_html = << EOM
<p>
This is my future site that will have 
</p>
<h2 id="music">music</h2>
<p>
<a class="ext-link"
href="http://stream.fluendo.com/streams/europa/pl_high.m3u";><span
class="icon"></span>http://stream.fluendo.com/streams/europa/pl_high.m3u</a>
./configure --prefix=/opt/soft/apache2 
--enable-disk-cache  --enable-ssl --enable-http 
--enable-dav  --enable-cgi --enable-cgid 
--enable-dav-fs  --enable-so --enable-rewrite
</p>


EOM
  history_href = /pair/wiki/TestTest?action=history
  attachments {
    0 {
      description = 
      author = 
      filename = soldier's_song.mp3
      href =
/pair/attachment/wiki/TestTest/soldier%27s_song.mp3
      time = 02/25/06 23:12:36
      ipnr = 68.36.48.176
      size = 486.0 kB
    }
    1 {
      description = 
      author = 
      filename = Dsc00054.jpg
      href =
/pair/attachment/wiki/TestTest/Dsc00054.jpg
      time = 02/25/06 23:14:50
      ipnr = 68.36.48.176
      size = 320.0 kB
    }
    2 {
      description = 
      author = ioffe
      filename = Sunflower.gif
      href =
/pair/attachment/wiki/TestTest/Sunflower.gif
      time = 02/25/06 23:15:02
      ipnr = 68.36.48.176
      size = 2.7 kB
    }
  }
  attach_href = /pair/attachment/wiki/TestTest
  action = view
  current_href = /pair/wiki/TestTest
}

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to