In widgets.php you can see this SQL that get candidate widgets:
$SQL =
"SELECT id, display_urls,kill_urls,widget_name ".
" FROM aiki_widgets ".
" WHERE. ...
" (widget_site='$site' OR widget_site ='aiki_shared' OR
widget_site ='default') ...".
" ...."
A app can installed:
- with aiki_shared as site so, all site can use it.
- with particular site, so it's only available for that site.
Important: You can't install the same app two times (widget_id and
widget_name must be unique). We would establish app configuration for each
site. So, or app is for all, or is for one.
Perhaps we need establish some difference between 'default' and
'aiki_shared' (or simply assume aiki_shared=default):
- default is the site created in first aiki installation.
- aiki_shared if for widget (app,sites) that can be user for multiple site.
That can be do with:
- admin widgets must have aiki_shared as site.
- previous SQL must modified to (widget_site='$site' OR widget_site
='aiki_shared)
i'm not sure if we need do that or simply assume previous SQL have a error
and delete aiki_shared. This is better for configuration that can be
establish as : app -> site -> default ...
roger
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help : https://help.launchpad.net/ListHelp