From: rfthomas <rf...@as...> - 2014-10-17 21:34:26
|
Would it be possible to have two sets of directory trees under the weberp top level directory: weberp/user weberp/system Aside from a small number of scripts in the weberp directory, the remaining scripts would be found first by finding the script/data in the weberp/user tree and if not found using the script/data in the weberp/system tree. One would expect a small number of scripts in the weberp/user tree. For our system, almost all of the customized scripts have not changed for many years. It is understood that not all user modifications are applicable, but the segregation makes the job of upgrades much easier. Such capabilities are used routinely for other products. In many cases such are implemented using O/S features. Any thoughts with respect to implementing such for WebERP? Bob Thomas -- View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Easing-update-pain-tp4657722.html Sent from the web-ERP-developers mailing list archive at Nabble.com. |
From: Phil D. <ph...@lo...> - 2014-10-18 02:01:59
|
Hi Bob, I have long thought this is a good idea and would be willing to donate time to do maybe 30 scripts or so... if there is more widespread support such an initiative then let's go... I have set up the infrastructure with a function in includes/MiscFunctions.php for function CheckMods($ScriptName) { if (file_exists('mods' . $ScriptName)){ return '/mods' . $ScriptName; } else { return $ScriptName; } } and modified MainMenuLinksArray.php to use the new function .... of course every script will have links all over which need to be modified too... so a bit of a mission ahead!! I have add a mods directory under the root directory for modified scripts - also added a mods/includes directory for modified scripts to use for includes and for modified DefineXXXXClass.php scripts. Anyway for those willing to contribute for the greater good who consider this to be a worthy initiative then maybe I could split up the scripts and we work through the scripts together? If you can give some time to this let me know and I will set out a plan. Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 18/10/14 10:32, rfthomas wrote: > Would it be possible to have two sets of directory trees under the weberp top > level directory: > > weberp/user > weberp/system > > Aside from a small number of scripts in the weberp directory, the remaining > scripts would be found first by finding the script/data in the weberp/user > tree and if not found using the script/data in the weberp/system tree. > > One would expect a small number of scripts in the weberp/user tree. > > For our system, almost all of the customized scripts have not changed for > many years. > > It is understood that not all user modifications are applicable, but the > segregation makes the job of upgrades much easier. > > Such capabilities are used routinely for other products. In many cases such > are implemented using O/S features. Any thoughts with respect to > implementing such for WebERP? > > Bob Thomas > > > > -- > View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Easing-update-pain-tp4657722.html > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: Andrew G. <aga...@re...> - 2014-10-18 02:23:00
|
I'm in! Well. When I get back from vacation. Sent from my BlackBerry 10 smartphone Original Message From: Phil Daintree Sent: Friday, October 17, 2014 7:03 PM To: webERP Developers Reply To: webERP Developers Subject: Re: [WebERP-developers] Easing update pain Hi Bob, I have long thought this is a good idea and would be willing to donate time to do maybe 30 scripts or so... if there is more widespread support such an initiative then let's go... I have set up the infrastructure with a function in includes/MiscFunctions.php for function CheckMods($ScriptName) { if (file_exists('mods' . $ScriptName)){ return '/mods' . $ScriptName; } else { return $ScriptName; } } and modified MainMenuLinksArray.php to use the new function .... of course every script will have links all over which need to be modified too... so a bit of a mission ahead!! I have add a mods directory under the root directory for modified scripts - also added a mods/includes directory for modified scripts to use for includes and for modified DefineXXXXClass.php scripts. Anyway for those willing to contribute for the greater good who consider this to be a worthy initiative then maybe I could split up the scripts and we work through the scripts together? If you can give some time to this let me know and I will set out a plan. Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 18/10/14 10:32, rfthomas wrote: > Would it be possible to have two sets of directory trees under the weberp top > level directory: > > weberp/user > weberp/system > > Aside from a small number of scripts in the weberp directory, the remaining > scripts would be found first by finding the script/data in the weberp/user > tree and if not found using the script/data in the weberp/system tree. > > One would expect a small number of scripts in the weberp/user tree. > > For our system, almost all of the customized scripts have not changed for > many years. > > It is understood that not all user modifications are applicable, but the > segregation makes the job of upgrades much easier. > > Such capabilities are used routinely for other products. In many cases such > are implemented using O/S features. Any thoughts with respect to > implementing such for WebERP? > > Bob Thomas > > > > -- > View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Easing-update-pain-tp4657722.html > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ Web-erp-developers mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: Pak R. <pak...@gm...> - 2014-10-18 07:55:07
|
Count on me Regards, Ricard 2014-10-18 10:01 GMT+08:00 Phil Daintree <ph...@lo...>: > Hi Bob, > > I have long thought this is a good idea and would be willing to donate > time to do maybe 30 scripts or so... if there is more widespread support > such an initiative then let's go... > > I have set up the infrastructure with a function in > includes/MiscFunctions.php for > > > function CheckMods($ScriptName) { > if (file_exists('mods' . $ScriptName)){ > return '/mods' . $ScriptName; > } else { > return $ScriptName; > } > } > > and modified MainMenuLinksArray.php to use the new function .... of > course every script will have links all over which need to be modified > too... so a bit of a mission ahead!! > > I have add a mods directory under the root directory for modified > scripts - also added a mods/includes directory for modified scripts to > use for includes and for modified DefineXXXXClass.php scripts. > > Anyway for those willing to contribute for the greater good who consider > this to be a worthy initiative then maybe I could split up the scripts > and we work through the scripts together? If you can give some time to > this let me know and I will set out a plan. > > Phil > > Phil Daintree > Logic Works Ltd - +64 (0)275 567890 > http://www.logicworks.co.nz > > On 18/10/14 10:32, rfthomas wrote: > > Would it be possible to have two sets of directory trees under the > weberp top > > level directory: > > > > weberp/user > > weberp/system > > > > Aside from a small number of scripts in the weberp directory, the > remaining > > scripts would be found first by finding the script/data in the > weberp/user > > tree and if not found using the script/data in the weberp/system tree. > > > > One would expect a small number of scripts in the weberp/user tree. > > > > For our system, almost all of the customized scripts have not changed for > > many years. > > > > It is understood that not all user modifications are applicable, but the > > segregation makes the job of upgrades much easier. > > > > Such capabilities are used routinely for other products. In many cases > such > > are implemented using O/S features. Any thoughts with respect to > > implementing such for WebERP? > > > > Bob Thomas > > > > > > > > -- > > View this message in context: > http://weberp-accounting.1478800.n4.nabble.com/Easing-update-pain-tp4657722.html > > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > > > > ------------------------------------------------------------------------------ > > Comprehensive Server Monitoring with Site24x7. > > Monitor 10 servers for $9/Month. > > Get alerted through email, SMS, voice calls or mobile push notifications. > > Take corrective actions from your mobile device. > > http://p.sf.net/sfu/Zoho > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: rfthomas <rf...@as...> - 2014-10-18 16:51:11
|
Most scripts call themselves multiple times. Instead of calling the script by hard code the $_SERVER['SCRIPT_NAME'] variable should be used. Such would replace hard coding the script name when calling the script again. Could a coding standard be developed? I would be happy to work on this. Bob Thomas -- View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Easing-update-pain-tp4657722p4657728.html Sent from the web-ERP-developers mailing list archive at Nabble.com. |
From: Phil D. <ph...@lo...> - 2014-10-18 21:33:18
|
Well we use htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') everywhere else - if there is a hard coded script name then normally it is not the same script - if you see one that should be htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') then do let me know. Thanks Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 19/10/14 05:48, rfthomas wrote: > Most scripts call themselves multiple times. Instead of calling the script > by hard code the $_SERVER['SCRIPT_NAME'] variable should be used. > > Such would replace hard coding the script name when calling the script > again. > > Could a coding standard be developed? I would be happy to work on this. > > Bob Thomas > > > > -- > View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Easing-update-pain-tp4657722p4657728.html > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: Pak R. <pak...@gm...> - 2014-10-19 14:55:37
|
Hi all: Sorry, but I've been thinking.... and now I'm doubting of the real use of this change: If we code this mod to select the "standard" webERP script or a "private modified" one, we still should merge our private modifications into the mainstream webERP script, from time to time (normally at every version release) so, which is the real advantage to this? For me the real pain is merging the files but, If we still need to merge the changes, what's the real point to have the scripts in one folder or another? Or am I missing the whole point? Regards, Ricard 2014-10-19 5:33 GMT+08:00 Phil Daintree <ph...@lo...>: > Well we use > > htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') > > everywhere else - if there is a hard coded script name then normally it > is not the same script - if you see one that should be > htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') then do let > me know. > > Thanks > > Phil > > Phil Daintree > Logic Works Ltd - +64 (0)275 567890 > http://www.logicworks.co.nz > > On 19/10/14 05:48, rfthomas wrote: > > Most scripts call themselves multiple times. Instead of calling the > script > > by hard code the $_SERVER['SCRIPT_NAME'] variable should be used. > > > > Such would replace hard coding the script name when calling the script > > again. > > > > Could a coding standard be developed? I would be happy to work on this. > > > > Bob Thomas > > > > > > > > -- > > View this message in context: > http://weberp-accounting.1478800.n4.nabble.com/Easing-update-pain-tp4657722p4657728.html > > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > > > > ------------------------------------------------------------------------------ > > Comprehensive Server Monitoring with Site24x7. > > Monitor 10 servers for $9/Month. > > Get alerted through email, SMS, voice calls or mobile push notifications. > > Take corrective actions from your mobile device. > > http://p.sf.net/sfu/Zoho > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: Rafael C. <raf...@gm...> - 2014-10-19 17:48:37
|
Hi, I do not know if that could help you. I my case, sometimes I need customizations (e.g. to fulfill local tax authority, like invoice printer's name and address on invoices) and some clients like customizations (e.g. different format for their documents). Some of them made too fast to be properly done and tested for a general version. Later, if that customizations can be part of a general version, I include them (e.g. commented "imprint" in PrintCustTransPortrait.php, or sales/pruchases invoice quantity in Tax.php). Regards, Rafael. 2014-10-19 8:54 GMT-06:00 Pak Ricard <pak...@gm...>: > Hi all: > > Sorry, but I've been thinking.... and now I'm doubting of the real use of > this change: > > If we code this mod to select the "standard" webERP script or a "private > modified" one, we still should merge our private modifications into the > mainstream webERP script, from time to time (normally at every version > release) so, which is the real advantage to this? > > For me the real pain is merging the files but, If we still need to merge > the changes, what's the real point to have the scripts in one folder or > another? Or am I missing the whole point? > > > > Regards, > Ricard > > 2014-10-19 5:33 GMT+08:00 Phil Daintree <ph...@lo...>: > >> Well we use >> >> htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') >> >> everywhere else - if there is a hard coded script name then normally it >> is not the same script - if you see one that should be >> htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') then do let >> me know. >> >> Thanks >> >> Phil >> >> Phil Daintree >> Logic Works Ltd - +64 (0)275 567890 >> http://www.logicworks.co.nz >> >> On 19/10/14 05:48, rfthomas wrote: >> > Most scripts call themselves multiple times. Instead of calling the >> script >> > by hard code the $_SERVER['SCRIPT_NAME'] variable should be used. >> > >> > Such would replace hard coding the script name when calling the script >> > again. >> > >> > Could a coding standard be developed? I would be happy to work on this. >> > >> > Bob Thomas >> > >> > >> > >> > -- >> > View this message in context: >> http://weberp-accounting.1478800.n4.nabble.com/Easing-update-pain-tp4657722p4657728.html >> > Sent from the web-ERP-developers mailing list archive at Nabble.com. >> > >> > >> ------------------------------------------------------------------------------ >> > Comprehensive Server Monitoring with Site24x7. >> > Monitor 10 servers for $9/Month. >> > Get alerted through email, SMS, voice calls or mobile push >> notifications. >> > Take corrective actions from your mobile device. >> > http://p.sf.net/sfu/Zoho >> > _______________________________________________ >> > Web-erp-developers mailing list >> > Web...@li... >> > https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> > >> >> >> >> ------------------------------------------------------------------------------ >> Comprehensive Server Monitoring with Site24x7. >> Monitor 10 servers for $9/Month. >> Get alerted through email, SMS, voice calls or mobile push notifications. >> Take corrective actions from your mobile device. >> http://p.sf.net/sfu/Zoho >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> > > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > |
From: Phil D. <ph...@lo...> - 2014-10-20 04:29:49
|
Agreed - I've reversed this. In the words of Jeremy Clarkson ... "How hard can it be" ... to copy a few scripts over! Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 20/10/14 06:48, Rafael Chacón wrote: > Hi, > > I do not know if that could help you. > I my case, sometimes I need customizations (e.g. to fulfill local tax > authority, like invoice printer's name and address on invoices) and > some clients like customizations (e.g. different format for their > documents). Some of them made too fast to be properly done and tested > for a general version.Later, if that customizations can be part of a > general version, I include them (e.g. commented "imprint" in > PrintCustTransPortrait.php, or sales/pruchases invoice quantity in > Tax.php). > > Regards, Rafael. > > 2014-10-19 8:54 GMT-06:00 Pak Ricard <pak...@gm... > <mailto:pak...@gm...>>: > > Hi all: > > Sorry, but I've been thinking.... and now I'm doubting of the real > use of this change: > > If we code this mod to select the "standard" webERP script or a > "private modified" one, we still should merge our private > modifications into the mainstream webERP script, from time to time > (normally at every version release) so, which is the real > advantage to this? > > For me the real pain is merging the files but, If we still need to > merge the changes, what's the real point to have the scripts in > one folder or another? Or am I missing the whole point? > > > > Regards, > Ricard > > 2014-10-19 5:33 GMT+08:00 Phil Daintree <ph...@lo... > <mailto:ph...@lo...>>: > > Well we use > > htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') > > everywhere else - if there is a hard coded script name then > normally it > is not the same script - if you see one that should be > htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') > then do let > me know. > > Thanks > > Phil > > Phil Daintree > Logic Works Ltd - +64 (0)275 567890 > <tel:%2B64%20%280%29275%20567890> > http://www.logicworks.co.nz > > On 19/10/14 05:48, rfthomas wrote: > > Most scripts call themselves multiple times. Instead of > calling the script > > by hard code the $_SERVER['SCRIPT_NAME'] variable should be > used. > > > > Such would replace hard coding the script name when calling > the script > > again. > > > > Could a coding standard be developed? I would be happy to > work on this. > > > > Bob Thomas > > > > > > > > -- > > View this message in context: > http://weberp-accounting.1478800.n4.nabble.com/Easing-update-pain-tp4657722p4657728.html > > Sent from the web-ERP-developers mailing list archive at > Nabble.com. > > > > > ------------------------------------------------------------------------------ > > Comprehensive Server Monitoring with Site24x7. > > Monitor 10 servers for $9/Month. > > Get alerted through email, SMS, voice calls or mobile push > notifications. > > Take corrective actions from your mobile device. > > http://p.sf.net/sfu/Zoho > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > <mailto:Web...@li...> > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push > notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > <mailto:Web...@li...> > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push > notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > <mailto:Web...@li...> > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > > > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |