Tuesday, 2010-08-17

../irclogs/#mantishelp.2010-08-17.log
--- scribe started ---00:00
istvanbhi guys14:04
istvanbI need to get answer to a php question:14:04
istvanbin the manage_config_workflow_set.php there is a line:14:04
istvanb$t_valid_thresholds = array( 'bug_submit_status', 'bug_resolved_status_threshold', 'bug_reopen_status' );14:05
istvanbin another php file I'd like to get the resolved status threshold value, so I used this: echo ($t_valid_threshold[1]);14:06
istvanbbut it gives me back nothing14:06
istvanbwhats wrong?14:06
nuclear_eclipseistvanb: because that variable is only declared in that file14:07
istvanbI see14:08
istvanbso t means a local variable?14:08
nuclear_eclipsethat's just how we name variables that are "temporary" in nature, but in that context it's technically a global variable because of the way PHP works14:09
istvanbI see now14:09
istvanblet me ask you this question then:14:09
nuclear_eclipseyou should probably understand how PHP and CGI work14:09
nuclear_eclipseunderstand/learn14:09
istvanbare you pissed off with all my questions?14:10
istvanb:)14:10
nuclear_eclipseno14:10
istvanbcause I know I can be a pain in the ass14:10
nuclear_eclipsebut learning about the CGI model for web applications would probably help you understand why mantis does things the way it does14:10
istvanbbut I am driven by the good goal: there is this show the status by percentage option in mantis, which is very useful, but it has one major problem: it also displays issues after the resolved phase14:11
istvanbin my workflow there is one more stage after resolved: closed14:11
istvanbbecause by time the waste majority of the issues will be closed, it makes no sense to have a graph showing 98% closed and 2% which is in various other stages14:12
istvanbso if I can get the resolved threshold by number I can easily modify the SQL query14:12
istvanbthis part is already tested with a hardwired number, I just want to get it dinamically14:13
istvanbthis also gives me no result: ==>echo ($g_bug_resolved_status_threshold);14:14
nuclear_eclipseyou should use config_get('bug_resolved_status_threshold')14:19
istvanbok, one more final question14:26
istvanbreally really final14:26
istvanbis there a simple way to create a new global variable?14:26
nuclear_eclipselike a new configuration option?14:28
istvanbyes14:32
nuclear_eclipseyou can add any $g_whatever to your config_inc.php, and use config_get('whatever') to retrieve the value14:34
istvanboh, thats really easy. I have already modified the html_api.php to hide anything above the resolved status14:35
istvanbthanks for the help man!14:35
nuclear_eclipseyou're welcome14:35
istvanbI will not forget to mention you in my thank-you-speech when I get the nobel price of php coding!14:36
istvanb :)14:36
nuclear_eclipseheh14:37
istvanbwhat should I do if I'd like to promote my changes to a candidate change in a future release of Mantis?14:49
nuclear_eclipsehttp://docs.mantisbt.org/master/en/developers/dev.contrib.html14:53
istvanbthx14:54
paulrmoo17:48
* Renegade15 pokes paulr 18:56
DigitallyB-rnI know this is going to be a sore subject, but I'm having issues configuring mantis to send mail through gmail. I'm running 1.2.2 hosted on godaddy.20:07
DigitallyB-rnI've tried every combination of options I could think of .. searched the forums .. updated phpmailer20:07
DigitallyB-rnHas anybody here had any luck?20:09
nuclear_eclipseDigitallyB-rn: there was an email sent to the mantisbt-help mailing list telling how to configure mantis to send via gmail20:18
DigitallyB-rnnuclear_eclipse: I'll look that up, thanks20:19
nuclear_eclipseDigitallyB-rn: http://sourceforge.net/mailarchive/forum.php?thread_name=m2ua6a9d7f21004301241y72422d5erb4a7a36737f6fbb0%40mail.gmail.com&forum_name=mantisbt-help20:20
nuclear_eclipseif that doesn't work, I'm not sure how to resolve it otherwise, I've never used anything but a local sendmail instance20:20
DigitallyB-rnI tried those settings (and just tried again for good measure) :(20:22
nuclear_eclipseoffhand, I'm thinking that gmail might have a different smtp port to use20:23
nuclear_eclipselike 587 or something odd like that20:23
DigitallyB-rnThey do. I tried both of the ports listed on google's help site.20:25
nuclear_eclipsemaybe godaddy is blocking outbound smtp connections? =\20:25
DigitallyB-rnI thought about that, but on another site I'm using similiar settings20:26
DigitallyB-rnIs there a way I can enable error messages .. so instead of it saying it's sent a confirmation email when I reset a password it will show smtp errors (if any)?20:30
nuclear_eclipsethere are a couple options you can set in your config_inc.php regarding errors, but I don't think that smtp errors are ever propagated to Mantis; I'm pretty sure phpmailer just silently eats them20:32
* giallu can't wait to ditch phpmailer :)21:08
nuclear_eclipsegiallu: so stop waiting and fix it already ;)21:10
giallunuclear_eclipse, working on the manual right now21:31
giallubut I could think about making it next on the list21:32
giallu:)21:32
paulrtime to break stuff21:44
paulrnuclear_eclipse/giallu: is the apache license compatible with gpl?21:46
* giallu is afraid of asking...21:47
gialluhttp://fedoraproject.org/wiki/Licensing#SoftwareLicenses21:47
giallubookmark it21:47
* paulr sighs21:48
paulris mantis 2 or 3 of gpl?21:48
paulrin fact giallu21:52
paulryou know licenses21:52
paulrwhat *exactly* do we have to do to drop gpl/21:52
gialluI don't really know21:52
gialluI guess a rewrite is the safer bet...21:53
gialluwhat do you propose instead?21:53
paulrlicense wise?21:54
paulrwell, atm, gpl just seems to generate grief imo :P21:54
paulrI mean, if someone writes a plugin21:54
paulrthat plugin might need to be gpl21:55
paulras it's a deritive or whatever21:55
paulrezcomponents has now been donated to apache21:55
paulrapache license apparently is only compatible with gpl 3 but not 221:55
paulrand that's only version 2 of the license21:55
paulrit just strikes me as more difficult then it needs to be21:57
gialluyes, I think plugins need to be GPL21:59
gialluwhich is not a problem.21:59
giallubut ez could21:59
gialluwhich apache license version are they using?22:00
paulrnot sure22:00
paulrbut we use gpl2 anyway :)22:00
gialludon't we have "or later" ?22:01
paulryes - but I'm sure there was a reason someone said we are still on 222:01
gialluI'd like to hear this reason22:01
gialluotherwise, for all effects we can be v322:02
gialluand compatible with apache22:02
micahgI thought v2 allows more flexibility for commercial usage22:02
gialluanyway. if ez stuff is in debian or fedora the package should list the license22:03
paulrmy point is more22:03
paulrfrom what I can tell (and correct me if i'm wrong)22:04
paulrbsd/mit/whatever tend to go 'do whatever'22:04
paulrgpl tends to go 'if you use me, everything else needs to be gpl too!'22:04
giallufrom 20K feet, yeah22:05
paulrso for example, if I look at ckeditor (aka browser based wysiwyg) they say http://ckeditor.com/license22:05
paulrCKEditor is distributed under the GPL, LGPL and MPL open source licenses. This triple copyleft licensing model avoids incompatibility with other open source licenses22:05
paulron top of that22:06
paulrthey also have some commercial license22:06
gialluthat's trickier22:06
gialluit all depends who's supposed to be forced to use the commercial license22:07
giallujpgraph is not in distros for this reason22:07
giallunon-free22:07
micahggiallu: jpgraph is in universe22:08
micahgoh, it's an older version22:08
paulrgiallu: I guess what i'm getting at is22:09
paulrif we were mit/lgpl/something else22:09
paulrwould that make life easier22:09
paulrgn22:30
Githubmantisbt: publican Gianluca Sforna * 2b848af (0 files in 0 dirs): Create scheleton for new xml based admin guide with publican. ...23:39
Githubmantisbt: publican Gianluca Sforna * fa2f7c0 (4 files in 1 dirs): Import former SGML manual23:39
Githubmantisbt: publican commits 0000000...fa2f7c0 - http://bit.ly/bXTgDK23:39
giallubed time now.23:41

Generated by irclog2html.py