[Cosmo-dev] Problem with cosmo.account.settings

Antonio Muñiz amunizmartin.cosmo at gmail.com
Wed Oct 24 08:50:13 PDT 2007


Hi, Jared.

I downloaded cosmo 0.7.2 from svn repository.
My modification is:
When a user will do click on the Settings link, it will do nothing (not show
the settings form). Simple.
This is the first step.

For this I have to modify the file menu.js (delete
cosmo.account.settings.showDialog() line)

...
{ id: 'settingsMenuItem',
        displayText: _('Main.Settings'),
        onclickFunc: function () { cosmo.account.settings.showDialog(); },
        displayMode: cosmo.ui.menu.displayModes.AUTH,
        requiredRoles: [cosmo.ui.menu.requiredRoles.USER]
        },
...

I modify the file and I do:
cd cosmo
mvn package
cd ..
cd snarf
mvn package

This generate a tar.gz file which contains the bundle server. I launch the
server but the changes has no effect.


Thanks for reply.

Antonio.


2007/10/24, Jared Rhine <jared at wordzoo.com>:
>
> Antonio Muñiz wrote:
> > I try to modify the code in /js/cosmo/account/settings.js but the
> > changes don´t take effect. Why?
>
> Hello, Antonio.  Are you working from a downloaded tarball?  If so, some
> of our Javascript code is wrapped up into a single "built" file.  If you
> change one of the source files, you would then need to recompile.
>
> If you're doing development on Cosmo, you would normally "build from
> source", using the instructions here:
>
>    http://chandlerproject.org/Developers/ChandlerServerSource
>
> There's a "Hack some code" section on that page, for instance.
>
> Does this help?  You may be having other problems, in which case we'll
> need more information about your set up and what you are trying to do.
>
> -- Jared
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/cosmo-dev/attachments/20071024/c4a9f53b/attachment.htm


More information about the cosmo-dev mailing list