Bug 293991

Summary: Importing 3rd Party Python Libraries.
Product: [Applications] umbrello Reporter: Skip Huffman <skiphuffman>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Skip Huffman 2012-02-13 12:41:23 UTC
Version:           unspecified
OS:                Linux

Python code very often includes libraries imported either from a standard set(ie, "time" functions), or from third parties(ie "selenium").  Sometimes these libraries are imported as a whole, other times only selected methods are imported.  This is specified by a group of header lines similar to this example:

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
import time, sys, re

Presently, to include these sort of functions, I am having to hand edit each file after performing a code generation.  It would be much better if I could specify that certain classes should include a specified header block.

Possibly this could be defined in the "General" section of the properties for the class.  Perhaps by turning "documentation" into a tab. and adding a second tab for "headers" or "external libraries".  This would make the "General" tab look similar to the "Operations" tab entries.

Reproducible: Didn't try



Expected Results:  
Well, I would like to see my example above.