GithubHelp home page GithubHelp logo

uml-to-django's People

Watchers

James Cloos avatar

uml-to-django's Issues

problem with step nb 6 (can't find '__main__' module in 'uml2dj' ")

hi,
I am quite new to django but I liked the idea of generating the model from the 
UML and so I was looking forward to use this "uml-to-django", but I have failed 
after few steps - please help me with it (as I am new I put quite exhaustive 
description what I did):

What steps will reproduce the problem?
1. I have Python 2.7.1 & django & libxml2-python-2.7.7.win32-py2.7 and also 
ArgoUML installed
2. I have a new django project called "mysite" (under .\mysite\) with an empty 
application called APP (under .\mysite\APP\)... and I can successfully run both 
'python manage.py syncdb' and 'python manage.py runserver' in that directory 
(NOTE:I have closed server for next steps)
3. I have downloaded the uml-to-django.zip and unzipped it into .\mysite\uml2dj\
4. I have opened .\mysite\uml2dj\uml2dj.zargo in ArgoUML (draw 2 associated 
classes inside MyApplication board) and saved it as APP.zargo (in the same 
.\mysite\uml2dj\ folder)
5. I have exported in as .\mysite\APP.xmi
6... when I do the 'python uml2dj APP' I have following error in command line:

" .\mysite>python uml2dj APP
C:\Program Files\Python27\python.exe: can't find '__main__' module in 'uml2dj' "


=== Additional info ===
a) I have tried it with AlgoUML both turned on & off as well - same message
b) I have following files in my .\mysite\uml2dj\ folder (while running step.6):
a.txt
APP.zargo
APP.zargo~
uml2dj.zargo
uml2djlib.py
xmi2djadmin.xsl
xmi2djadmin_custom.xsl
xmi2djadmin_generic.xsl
xmi2djmodels.xsl
xmi2djmodels_generic.xsl
xmilib.xsl
__init__.py (which seems to be empty)

thanks a lot in advance,
Borys

Original issue reported on code.google.com by [email protected] on 11 Apr 2011 at 3:47

When aggregating to object to itself, code will break

What steps will reproduce the problem?
1. Create aggregation to object itself

What is the expected output? What do you see instead?

Error: One or more models did not validate:
toobackup.host: Reverse query name for field 'host' clashes with field
'Host.host'. Add a related_name argument to the definition for 'host'.


What version of the product are you using? On what operating system?

Django 1.1.1


Please provide any additional information below.

Into the file:
uml2dj/xmi2djmodels_generic.xsl

Change row 192 to:
<xsl:when test="$classid = $otherClassid">'self',
related_name='self_child'</xsl:when>

Original issue reported on code.google.com by [email protected] on 9 Feb 2010 at 10:17

Group associated with this project?

This is not really an issue. I didn't know how else to communicate with
you. But is there a Group associated with this project?

Thanks
Eric

Original issue reported on code.google.com by [email protected] on 3 Oct 2009 at 11:45

Support for operations

Will there be operations (methods with body and args support) soon?


Btw, you have made good application. :)

Original issue reported on code.google.com by [email protected] on 9 Feb 2010 at 11:32

Step number seven on setup page is strange

I believe that the seventh step in the quick start up for uml2dj is not 
consistent:

7 - In the PRJ/APP folder, rename admin_custom.py into admin_custom.py and 
models.py into models.py. (you only need to do this once).

It should be

7 - In the PRJ/APP folder, rename _admin_custom.py into admin_custom.py and 
_models.py into models.py. (you only need to do this once).

Furthermore, i have to rename the files whenever i generate the code, not only 
once.

Original issue reported on code.google.com by [email protected] on 25 Oct 2010 at 12:31

Importing from source files in argouml doesn't result in a valid xmi for uml2dj

The provided instructions won't work when reverse-engineering the class model 
from source files in argouml.

I had a class model built using visual paradigm. The XMI created by VP didn't 
work with uml-to-django, so I generated java source code in VP, and reverse 
engineered it in argouml. This kida worked, but exporting the resulting xmi 
from argouml wasn't directly usable with uml-to-django.

Original issue reported on code.google.com by [email protected] on 18 Mar 2011 at 6:23

Some class names are not supported

UML-to-Django does not support class names:

- which are too long (this is due to limitation in the the size of the
columns in Django tables)

- which contains special characters such as . or / .

Original issue reported on code.google.com by [email protected] on 16 Oct 2009 at 12:28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.