We should not depend on id but use app_name instead because when users
install apps in different order it will all mess up.
There should be aiki_apps table
aiki_apps 1,0----------N aiki_widgets
and select widgets for the app
SELECT aiki_widgets.id, widget_name FROM aiki_widgets, aiki_apps WHERE
app_id = aiki_apps.id AND app_name = '<app name>'
Admin panel will be always installed as first app so it always will
have id == 1.
And we should have function form installing and uninstalling an app.
the idea is to have all packed in one php file with class the same as
filename.
class Translation {
function install() {
}
function uninstall() {
}
}
And the file will be Translation-0.1.php
On Mon, 09 Jan 2012 14:45:51 -0000
rejon <[email protected]> wrote:
> Ok how do we keep a registry of app ids? Or should we keep some has or
> register by name?
>
> [email protected]
> http://fabricatorz.com
> +1.415.830.3884
> +86.187.1003.9974
> On Jan 9, 2012 10:00 PM, "Bassel Safadi" <[email protected]>
> wrote:
>
> > yes right, fixed, now not all admin widgets have app_id = 1
> > this is easy to fix by adding app_id to them
> >
> > ** Changed in: aikiframework
> > Status: Confirmed => Fix Released
> >
> > ** Changed in: aikiframework
> > Assignee: (unassigned) => Bassel Safadi (bassel)
> >
> > --
> > You received this bug notification because you are subscribed to
> > aikiframework.
> > https://bugs.launchpad.net/bugs/900996
> >
> > Title:
> > Widgets break if widget have url that start with admin
> >
> > To manage notifications about this bug go to:
> > https://bugs.launchpad.net/aikiframework/+bug/900996/+subscriptions
> >
>
--
Jakub Jankiewicz
twitter: @jcubic
www: http://jcubic.pl
--
You received this bug notification because you are a member of Aiki
Framework Admins, which is subscribed to aikiframework.
https://bugs.launchpad.net/bugs/900996
Title:
Widgets break if widget have url that start with admin
Status in Aiki Framework:
Fix Released
Bug description:
If url of widget that is a father contain "admin" - more likely that
one of the urls start with "admin", then you can't set it father of
the widget in Admin Panel there is no that father in Father Widget
select.
posible reason for this is bug: "Aiki display widget if only a part of url
match"
https://bugs.launchpad.net/aikiframework/+bug/892295
because there are already admin_tools in Admin Panel.
To manage notifications about this bug go to:
https://bugs.launchpad.net/aikiframework/+bug/900996/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework.admins
Post to : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework.admins
More help : https://help.launchpad.net/ListHelp