This page contains developer documentation for the Part class importable from partclass - currently, more a notepad for me than real documentation.
Contents
Public methods
Part.__init__()
(Part) = Part(ID = None) (Part) = Part( [type = ''], [package = ''], [value = ''], [description = ''], [cnt_target = 0], [cnt_min = 0], [storage_id = ''], [dslink = ''], [rmk = ''] )
Data presentation
Part.__str__()
(string) = __str__()
Part.html_long()
(string) = html_long()
Part.html_short()
(string) = html_short()
Part.txt_short()
(string) = txt_short()
Database interaction
Part.store()
store()
Part storage handling
Part.storage_add()
storage_add( count = 0, [storage = 0] )
Part.storage_sub()
storage_sub( count = 0, [storage = 0] )
Part.storage_set()
storage_set( storage = 0, count = 0 )
Part.storage_default_get()
(int) = storage_default_get()
Part availability
Part.storage_total_get()
(int) = storage_total_get()
Part.is_ordered()
(0 | 1) = is_ordered()
Exceptions
InvalidData
'COUNTINVAL': 'Invalid count for operation.', \
'UNDERFLOW': 'Not enough parts in whole storage to subtract.', \
'STOREMPTY': 'Not enough parts in this storage.', \
'STORNONE': 'No usable storage exists for this part.', \
'STORINVAL': 'Unknown storage.', \
'UNDEF': 'Undefined InvalidData error.' \
THIS DATA IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DATA, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
All product and brand names mentioned on there pages and in the source code are registered names and/or trademarks of the respective owner and are mentioned for identification purposes only.
For a full copyright notice, please see this link. For imprint and contact information, please see http://www.thiemo.net/.