[Uml-devel] [Bug 293991] New: Importing 3rd Party Python Libraries.

Skip Huffman skiphuffman at gmail.com
Mon Feb 13 12:41:23 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=293991

           Summary: Importing 3rd Party Python Libraries.
           Product: umbrello
           Version: unspecified
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: umbrello-devel at kde.org
        ReportedBy: skiphuffman at gmail.com


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.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the umbrello-devel mailing list