Changeset 1136 in main


Ignore:
Timestamp:
05/29/12 13:37:26 (7 years ago)
Author:
agalech
Message:

New function get_all_subtype_documents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/models.py

    r1103 r1136  
    9999from openPLM.plmapp.utils import level_to_sign_str, memoize_noarg 
    100100 
    101  
    102101# user stuff 
    103102 
     
    985984    _get_all_subclasses(Document, res) 
    986985    return res 
     986     
     987 
     988def get_all_subtype_documents(subtype): 
     989    u""" 
     990    Returns a dict<doc_name, doc_class> of all available **subtype** classes 
     991    """ 
     992    res = {} 
     993    _get_all_subclasses(subtype, res) 
     994    return res 
    987995 
    988996@memoize_noarg 
Note: See TracChangeset for help on using the changeset viewer.