Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# gedw99 3/22/2008 2:01 PM
i think this topic has been disucssed before.

When developing large Modules where to put it ??
I assume you make it a Service, and then the Ui is just Modules that go with it ??


G
# martijnb 3/24/2008 7:04 PM
Two possible solutions:
- If the service is used by more modules, just register it in the container like every other service.
- An alternative is to register the service in the cuyahoga_moduleservice table. The module loader always checks if a module depends on additional services. Currently, the Articles module uses this for its DataAccess component.
# gedw99 3/27/2008 2:02 AM
Perfect

2nd option to perform the config at the code level sounds good.

thanks
# YKS 3/27/2008 5:48 PM
You can view more examples of services in http://cuyahogacontrib.svn.sourceforge.net/viewvc/cuyahogacontrib/Cuyahoga.Modules.News/trunk/
# gedw99 3/30/2008 11:33 AM
Mhh interesting.

i looked at lots of the examples.

What i am curious about is the dependencies between the modules and other modules this creates.
For a Service you want to control its dependencies in relation to the Modules using it.

I wonder if there is a way to have a Module depend on another Module.
This makes dependency management easier because Cuya already manages this a bit anyway in the Install process.
# Efie 3/31/2008 9:47 AM
With the new moduleloader in 1.5.2 you can depend your modules on other modules, which provides some really great features to Cuyahoga. There is no mechanism to check for this dependencies (module 2 requires module 1 or something like that), that should be a nice feature for a current release.
# gedw99 3/31/2008 11:51 AM
Efie,

ok now i get it.
Yes that is very powerful. It was exactly what i was looking for.
i presume that version 1.5.2 is the current trunk??

When un-installing a module i guess you have to know these dependencies, OR maybe the Module screen will show for each Module what Modules it depends on.
# Efie 3/31/2008 12:12 PM
It is the latest release: http://sourceforge.net/project/showfiles.php?group_id=153246

Exactly, somewhere should be checked which modules depend on each other an can or can't be deleted, but of course also with installing modules (you can't install modules which depend on non-available modules)

The new moduleloader wasn't built specifically to solve this, it was just a side-effect (according to Martijn), but it is really powerful, so the dependency checking stuff isn't there yet.