Book a Demo

Author Topic: Actrionscript, Python and SQL in one project ?  (Read 3985 times)

JohnDoe

  • EA User
  • **
  • Posts: 191
  • Karma: +0/-0
  • EA rocks !
    • View Profile
Actrionscript, Python and SQL in one project ?
« on: August 16, 2006, 11:21:36 am »
Hi everybody,

is it possible to develop within one project mixed models of Actionscript classes, python classes and MySQL databases and then generate Actionscript, Python and MySQL ?
I would like to create a communcaiton model between flash frontend classes and python /MySQL backend and generate all source from one project.
There is a switch where I can choose the language of the class (e.g. Python, Actionscript etc.). When I choose "generate source", can I produce all three source packages independently (SQL-DDL, Python source, Actionscript source) in different folders or is there only one language generation process for the complete project which produces sources of the choosen project language?

Thanks for helping me
Bernd

thomaskilian

  • Guest
Re: Actrionscript, Python and SQL in one project ?
« Reply #1 on: August 16, 2006, 01:56:32 pm »
That's no problem. You can use model transformation to create different flavors in different languages and then create the source code. Create the target packages in the according language.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Actrionscript, Python and SQL in one project ?
« Reply #2 on: August 16, 2006, 03:18:51 pm »
Or at a simpler level.  Each package can be assigned a default code language (look unde build and run) so you can then create classes in each language independently.

JohnDoe

  • EA User
  • **
  • Posts: 191
  • Karma: +0/-0
  • EA rocks !
    • View Profile
Re: Actrionscript, Python and SQL in one project ?
« Reply #3 on: August 17, 2006, 01:06:12 pm »
@thomas:

thanks for the tip !!

I found the fabulous "model transformation" feature, fiddled around with those transformation templates and successfully made my way from central classes to SQLite tables, python source and actionscript source in one step now ;)

Sparx guys listen up: EA rocks !!!!!! ;) ;) ;)

Thanks thomas
Bernd
« Last Edit: August 17, 2006, 01:43:27 pm by BerndWill »

bob_d

  • EA User
  • **
  • Posts: 22
  • Karma: +0/-0
    • View Profile
Re: Actrionscript, Python and SQL in one project ?
« Reply #4 on: August 22, 2006, 12:09:02 pm »
Did you have to write a transformation template for Python ?  I don't seem to be able to define a new one in the UI - the help files suggested a path of making sure it was available in the Code Gen templates (it was) and iterating over the types to make sure the bits are flipped to Modified Yes (via Edit Save with no changes)

(probably "pilot error" but I'm a bit lost on this...)

"Whoever undertakes to set himself up as a judge of Truth and
Knowledge is shipwrecked by the laughter of the gods." - Albert Einstein

thomaskilian

  • Guest
Re: Actrionscript, Python and SQL in one project ?
« Reply #5 on: August 22, 2006, 03:00:09 pm »
Try looking at the transform templates for C# (Settings/Code Gen Templates). You can export them via export reference data after making each macro "dirty" by touching it. You then can use the export to import your Python template.

Alternatively, there might be one that already has a template an shares it with you?

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Actrionscript, Python and SQL in one project ?
« Reply #6 on: August 24, 2006, 06:40:46 pm »
Quote
Alternatively, there might be one that already has a template an shares it with you?
...And the rest of us via the EA User site...
[size=13]EA User Group[/size]

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!