Edgewall Software

Changes between Version 8 and Version 9 of TracDev/DataModels


Ignore:
Timestamp:
Sep 14, 2015, 2:40:40 PM (4 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/DataModels

    v8 v9  
    1 = Trac Data Models =
     1= Trac Data Models
    22
    33The main models that developers might be interested in are Ticket and !WikiPage. The constructors each take the environment as the first parameter, and the ticket id or wiki page name next.
    44
    5 == Ticket ==
     5== Ticket
    66
    77Data Model - [source:/trunk/trac/ticket/model.py trac.ticket.model.Ticket]
     
    1010
    1111'''Example:'''
    12 {{{
    13 #!python
     12{{{#!python
    1413from trac.env import Environment
    1514from trac.ticket.model import Ticket
     
    4241For more examples, see [source:/trunk/trac/ticket/web_ui.py trac.ticket.web_ui].
    4342
    44 == !WikiPage ==
     43== !WikiPage
    4544
    4645Data Model - [source:/trunk/trac/wiki/model.py trac.wiki.model.WikiPage]
     
    4948
    5049'''Example:'''
    51 {{{
    52 #!python
     50{{{#!python
    5351from trac.env import Environment
    5452from trac.wiki.model import WikiPage
     
    7573page = WikiPage(env, 'AnotherPage')
    7674page.delete(version=5)
    77 
    7875}}}
    7976