polc.parsers
index
/mud/nakedmud-mod/lib/pymodules/polc/parsers.py

################################################################################
#
# Four Worlds
# Copyright (c) 2009-????
#
# Package: polc
#    File: parsers.py
#
# The automatic Python OLC system, capable of generating an online content editor
# for a given Python class or dict by using dictionaries to discover properties.
#
# OLC Response Parsing
#
# Author: Stendec
#
################################################################################

 
Modules
       
auxiliary
copy
mudsys
storage

 
Functions
       
parse_choice(sock, data, key, val)
Parse a multiple-choice value.
parse_list(sock, data, key, val)
Parse a list or tuple.
parse_number(sock, data, key, val)
Parse a numeric value.
parse_string(sock, data, key, val)
Parse a string value.

 
Data
        StringTypes = (<type 'str'>, <type 'unicode'>)
fancy_keys = {'desc': 'Description', 'edesc': 'Extra Descriptions', 'mdesc': 'Room Description for Multiple Occurences', 'mname': 'Name for Multiple Occurences', 'rdesc': 'Room Description'}
menukeys = '1234567890ABCDEFGHIJKLMNOPRSTUVWXYZ'