Thanks.  Enhancement request <a href="https://bugs.kde.org/show_bug.cgi?id=293042">293042</a> entered.<br><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 11:38 AM, Andi Fischer <span dir="ltr"><<a href="mailto:andi.fischer@hispeed.ch">andi.fischer@hispeed.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 10.02.2012 15:21, schrieb Skip Huffman:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ok, that partially works.  But not entirely. Also instead of importing "time"  it tries to import "Time".  The capitalization is correct in the umbrello model, just not in the generated code.<br>
<br>
Let me restate the question a bit.<br>
<br>
If I were hand coding the library instead of using Umbrello to generate it, I would include several lines at the top:<br>
<br>
from selenium.webdriver.support.ui import WebDriverWait<br>
from selenium.common.exceptions import *<br>
import time<br>
<br>
(Those are all external libraries.  One third party, and one standard library.)<br>
<br>
How can I set up the umbrello model to include these same lines in particular classes?<br>
</blockquote></div>
Hi Skip,<br>
<br>
What about this idea:<br>
<br>
For code generation you can define a file header. Go to Settings - Configure Umbrello UML Modeller - Code Generation.<br>
Enter your file header in "Include heading files from folder", where you add your import statements.<br>
<br>
That is not exactly what you want, because it adds this file header to every generated file.<br>
You will have the same import statements in every file.<br>
<br>
Please add a wish to <a href="http://bugs.kde.org" target="_blank">bugs.kde.org</a>. Quick idea: It is missing a text box where the imports for every class can be entered.<br>
<br>
Regards,<br>
<br>
Andi<br>
<br>
</blockquote></div><br>