Bug 293991 - Importing 3rd Party Python Libraries.
Summary: Importing 3rd Party Python Libraries.
Status: REPORTED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-13 12:41 UTC by Skip Huffman
Modified: 2012-02-13 12:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.