--
You received this message because you are subscribed to the Google Groups "Sahana-Eden" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sahana-eden...@googlegroups.com.
To post to this group, send email to sahan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAE8saEN2G7hR0MhBAnZUb7Uy31LeGYF7bRKYYtHYMtuuqZp2JQ%40mail.gmail.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Sahana-Eden" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sahana-eden...@googlegroups.com.
To post to this group, send email to sahan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/cf3d4a98-530e-484b-b8f0-37a453f90a7f%40googlegroups.com?hl=en-US.
F
--
You received this message because you are subscribed to the Google Groups "Sahana-Eden" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sahana-eden...@googlegroups.com.
To post to this group, send email to sahan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAPKzktLN%3Du%2BSPLaqiEn2zg5xynd94fSr7aSkuFV15WCcPWLvpw%40mail.gmail.com?hl=en-US.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAE8saEMfnt8dFkm1hrRb5eYdH2rgc_Fd-ik04qD2R%3DGpZiYmxg%40mail.gmail.com?hl=en-US.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAPKzkt%2BET1TyGbz4bWhAwsRQm9p%2BGq6RyvXQHkH1DRH9P3maqg%40mail.gmail.com?hl=en-US.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAPKzktJmahxN%2BtxCBn_bBWBchWLKA%3DNiBvrgO0VDDox_yum-jg%40mail.gmail.com?hl=en-US.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAPKzktJmahxN%2BtxCBn_bBWBchWLKA%3DNiBvrgO0VDDox_yum-jg%40mail.gmail.com?hl=en-US.
Hi Fran,
" I merged.
The approach seems good for getting us a useful step closer very easily :)
The "this template" part works perfectly, which is great, thanks :)
However the list of preselected modules wasn't accurate on my system
though for some reason....I was running the DRMP template at the time. "
It works well on my system. The only explanation I can think of is that maybe the the list of modules from the settings variable is not consistent with the list of modules that we get from controller.
"After fixing that, the next steps would be to hide core modules:
Auth/Default should be inside Core
Appadmin/Errors/Sync should be inside 'Admin' "
I think it would
be important to give the admin the option of deselecting these modules
also, in case he knows that modules are already translated or for some
other reason.
" We should probably have name_nice displayed rather than the actual names if this is to be used by non-core devs. "
Yeah I l do that, we can display name_nice with the acutal name in bracket.
" We should also build a dependency system, so that e.g. 'supply' gets
selected when modules which use it are selected (i.e. Inv/Req). "
Is there any particular way to detect these dependencies or should we hard code these in our code ?
" Another example of dependencies:
modules/s3survey should only be included if the Survey module is selected "
I think this is being already done in the current code.
https://github.com/nownikhil/eden/blob/master/modules/s3/s3translate.py#L278
F
--
You received this message because you are subscribed to the Google Groups "Sahana-Eden" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sahana-eden...@googlegroups.com.
To post to this group, send email to sahan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAPKzktKa5PexxwMzAJek6nwx2JHVVAjMosNRrh92VnSap_hsqA%40mail.gmail.com?hl=en-US.
F
--
You received this message because you are subscribed to the Google Groups "Sahana-Eden" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sahana-eden...@googlegroups.com.
To post to this group, send email to sahan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAPKzkt%2B7ZBSwB9szou-BAo4jy8V%3DQaDvhYaJTn4po7-BwkPfwA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAPKzktL2Ez1aGbni62fU%3Ddw3MHZvF1Xck2ug6jTij%3D3QDiaVeA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAE8saEMcJDiQTCHRJphsZGy4wrbGU%2BnABPCMFF%3DPmGd3eBSKVw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAAu86T4M2EoKncsxRYumWM7Juwvv8v02Hchnovj%3Dd4Hzug423Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAE8saEO%3D%2BfpKTjEDGmbCutKw-nDL0jmMffinAqLM9fm%2BXdp6uA%40mail.gmail.com.
Method 1 : We can make changes in s3model.py and add self.depends = { ‘inv’ : ‘supply’ , ‘req’ : ‘supply }. This Dictionary will be global and can be accessed by current.s3db.depends. This is one way to set the dependencies and access them when required.
Method 2 : Now, if we want to set the dependencies individually for each module in its s3db/<module>.py, then I am not able to access them using current.s3db[<table_name>]. depends. For eg, if we see file https://github.com/nownikhil/eden/blob/master/modules/s3db/inv.py we see inv.py has 4 instances of S3Model. Key being used is the TableName. eg :- current.s3db[‘inv_warehouse’]. So firstly, the table names do not follow a pattern for each module and secondly, I am not able to access the “.depends” list for the table.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CAAu86T7nodLF-93g%3Do%2BUWNLcF-ZJ7YEdC%3D4Ya%3DEo%3DPCjbLXY8A%40mail.gmail.com.
At this stage my suggestion would be to make it a global at the module level. So taking inv as an example you can add a global list: inv_depends = ["supply"] this will be similar to the way that the global inv_ship_status works. This will need to be exported and then in your translate controller you can find the value as models.inv.inv_depends
--
You received this message because you are subscribed to the Google Groups "Sahana-Eden" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sahana-eden...@googlegroups.com.
To post to this group, send email to sahan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CABT-%2B2pLwiptdrg77xb29AD9baEVzQ7BEeBXCEk6L8V5uJXGiA%40mail.gmail.com.
The example I gave was to add it to modules/s3db/inv.py, similar in working to inv_ship_status which is also in that file.
--
You received this message because you are subscribed to the Google Groups "Sahana-Eden" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sahana-eden...@googlegroups.com.
To post to this group, send email to sahan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sahana-eden/CABT-%2B2qJxqxb%2B-5%2BcUVeUBEpQcXqe7MSj_oNZFXTGUVdQDUfuA%40mail.gmail.com.
I tested this in the debugger before posting, models.inv.inv_depends works.I was following the approach to naming, which is currently in use.