Functions | Variables
exampleparser Namespace Reference

Functions

def createFeed
def extractById
def getExampleHtml
def getListOfExamples
def getListOfOnlineExamples
def getRelatedClasses
def getSvnInfo
def parseHtml
def wordIndex

Variables

tuple atom = open('../examples/%s' % feedName, 'w')
tuple d = getSvnInfo(url)
tuple doc = createFeed(exampleList)
list docIds = ['title','shortdesc','tags']
list exampleList = []
tuple examples = getListOfExamples(examplesLocation)
string examplesLocation = '../examples'
string feedName = "example-list.xml"
string feedPath = "http://openlayers.org/dev/examples/"
tuple html = getExampleHtml(url)
tuple index = wordIndex(exampleList)
tuple json = json.dumps({"examples": exampleList, "index": index})
 missing_deps = False
tuple modtime = time.strftime("%Y-%m-%dT%I:%M:%SZ", time.gmtime())
tuple outFile = open(sys.argv[1],'w')
tuple tagvalues = parseHtml(html,docIds)
tuple url = os.path.join(examplesLocation,example)

Function Documentation

def exampleparser.createFeed (   examples)

Definition at line 117 of file exampleparser.py.

def exampleparser.extractById (   soup,
  tagId,
  value = None 
)
returns full contents of a particular tag id

Definition at line 73 of file exampleparser.py.

def exampleparser.getExampleHtml (   location)
returns html of a specific example that is available online or locally

Definition at line 59 of file exampleparser.py.

returns list of .html filenames within a given path - excludes example-list.html

Definition at line 50 of file exampleparser.py.

useful if you want to get a list of examples a url. not used by default.

Definition at line 38 of file exampleparser.py.

parses the html, and returns a list of all OpenLayers Classes 
used within (ie what parts of OL the javascript uses).  

Definition at line 85 of file exampleparser.py.

def exampleparser.getSvnInfo (   path)

Definition at line 106 of file exampleparser.py.

def exampleparser.parseHtml (   html,
  ids 
)
returns dictionary of items of interest

Definition at line 93 of file exampleparser.py.

def exampleparser.wordIndex (   examples)
Create an inverted index based on words in title and shortdesc.  Keys are
lower cased words.  Values are dictionaries with example index keys and
count values.

Definition at line 177 of file exampleparser.py.


Variable Documentation

tuple exampleparser::atom = open('../examples/%s' % feedName, 'w')

Definition at line 254 of file exampleparser.py.

Definition at line 234 of file exampleparser.py.

Definition at line 255 of file exampleparser.py.

list exampleparser::docIds = ['title','shortdesc','tags']

Definition at line 218 of file exampleparser.py.

Definition at line 217 of file exampleparser.py.

Definition at line 224 of file exampleparser.py.

Definition at line 214 of file exampleparser.py.

string exampleparser::feedName = "example-list.xml"

Definition at line 35 of file exampleparser.py.

string exampleparser::feedPath = "http://openlayers.org/dev/examples/"

Definition at line 36 of file exampleparser.py.

Definition at line 230 of file exampleparser.py.

Definition at line 245 of file exampleparser.py.

string exampleparser::json = json.dumps({"examples": exampleList, "index": index})

Definition at line 247 of file exampleparser.py.

Definition at line 21 of file exampleparser.py.

tuple exampleparser::modtime = time.strftime("%Y-%m-%dT%I:%M:%SZ", time.gmtime())

Definition at line 226 of file exampleparser.py.

tuple exampleparser::outFile = open(sys.argv[1],'w')

Definition at line 210 of file exampleparser.py.

Definition at line 231 of file exampleparser.py.

tuple exampleparser::url = os.path.join(examplesLocation,example)

Definition at line 229 of file exampleparser.py.



websocket_gui
Author(s): Benoit Lescot and Stéphane Magnenat
autogenerated on Mon Oct 6 2014 08:54:48