Results 1 to 7 of 7

Thread: module loader manifest question

  1. #1
    mycrmspacegunnar is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    105

    Default module loader manifest question

    Hi,

    I have a question regarding the creation of a module.
    I know how to add new files using the manifest.

    But there are some Sugar files that I would like to update and not to overwrite.
    Does the module loader provide a way to add diffs to existing files?
    If yes, what would be the syntax for this in the manifest?

    Cheers
    Gunnar
    Gunnar von Boehn
    myCRMspace

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: module loader manifest question

    Quote Originally Posted by mycrmspacegunnar
    Hi,

    I have a question regarding the creation of a module.
    I know how to add new files using the manifest.

    But there are some Sugar files that I would like to update and not to overwrite.
    Does the module loader provide a way to add diffs to existing files?
    If yes, what would be the syntax for this in the manifest?

    Cheers
    Gunnar
    No it does not. There is no current way to add diffs to current files. You can only overwrite them. Diffs are problematic anyway because you never know who has changed the file before you and how. I tried to write a php diff writer thing but could never overcome the fact that there is no way to know what the file looks like before you start. Unchangeable landmarks would have to be added or something.

    What is it that you are trying to add to what file. Maybe there is a way to do it without overwriting the file.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: module loader manifest question

    mycrmspacegunnar, it's exactly this type of topic that will be covered in the Tuesday, Dec 12th SDUG (Sugar Dev-User Group) event. Ken will be covering the manifest file; Max, vardefs; and Jacob will be speaking about the customization model.

    This is all to provide a backdrop towards creating upgrade-safe extensions that can co-exist.

    Following this, on January 4th, we have a session where we'll cover the step-by-step process leading to the creation of the Sugar Forums module.

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  4. #4
    mycrmspacegunnar is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    105

    Default Re: module loader manifest question

    Hi Kennth,

    Quote Originally Posted by kbrill
    What is it that you are trying to add to what file. Maybe there is a way to do it without overwriting the file.
    I ran into the issue two times so far:

    a) I wanted to create a module which adds some extra fields to a modulelayoutfile.
    I would not want to overwrite the existing layout file as this will remove the users layout adaptions.

    b)
    I have created some extra dashboards which could be a usefull addition for SugarOS users.

    Each dashboard is a single file (located in modules/Charts/code) so adding or removing this file is simple.
    As far as I can see the current default dashboards share one language file (modules/Charts/language/...)
    and there is one file (predefined_charts.php) whcih contains one line per installed dashboard.

    I wanted to create several small modules, one per dashboard.
    Each module would add one dashboard php file, to active the dashboard each module would need to add that one line to the mdules/Charts/code/predefined_charts.php file. Overwriting this file would be bad as this would "deinstall/deactive" the other dashboarss :-/

    It was hoping for a simple way of doing this with the manifest/module loader.

    Many thanks for your tips.

    Cheers

    Gunnar
    Gunnar von Boehn
    myCRMspace

  5. #5
    mycrmspacegunnar is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    105

    Default Re: module loader manifest question

    Quote Originally Posted by andydreisch
    mycrmspacegunnar, it's exactly this type of topic that will be covered in the Tuesday,
    Cool!

    I've just signed up.

    Maybe you and explain tomorrow the following as well:
    I made a module which adds some new dashboards to the default 4 dashboards of SugarOS.
    Iinstalling /deinstalling the modul works on the filesystem.
    But Sugar stores some information regardind the modules in the database (table dashboards)
    After deinstalling the files this old records in the database will cause some problems.

    What would be the cleanest way to take care of this during deinstall?


    Cheers
    Gunnar
    Gunnar von Boehn
    myCRMspace

  6. #6
    mycrmspacegunnar is offline Sugar Community Member
    Join Date
    Sep 2006
    Posts
    105

    Default Re: module loader manifest question

    Quote Originally Posted by andydreisch
    mycrmspacegunnar, it's exactly this type of topic that will be covered in the Tuesday, Dec 12th SDUG (Sugar Dev-User Group) event. Ken will be covering the manifest file; Max, vardefs; and Jacob will be speaking about the customization model.


    Andy
    Gee,

    the online meeting did not work.

    I signed up for the event and got on the webpage the resoonse "You signed up response" (or something like that)
    But I never got an email nor could I find a way to go from Sugerforge to the meeting.

    Could it be that the sign up system is not working?

    Can you provide me with the speech of today?

    Cheers
    gunnar
    Gunnar von Boehn
    myCRMspace

  7. #7
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: module loader manifest question

    Sorry to hear of the issues. Go here for follow-up content.

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •