Wednesday, 2009-12-09

../irclogs/#mantishelp.2009-12-09.log
--- scribe started ---00:00
dirtyalI've upgraded to the last git, 1.3dev and the dource integration stopped working15:51
dirtyalI am getting the error: Invalid repository name15:51
dirtyalany ideas?15:51
dirtyalhas anyone have problems with 1.3 and source integration16:06
dirtyal?16:06
dirtyalnuclear_eclipse: are tou there?17:08
g0rd0n_hmm found out i had to modify core/ldap_api.php to change the "mail" field to "email" in order to get the adresses from ldap... maybe the ldap fields should be configurable in the config file?18:34
g0rd0n_oh well, i will patch the ldap_api.php anyway to set user level based on the ldap group field :P18:38
dirtyalI am having a problema with the source integratoin18:38
dirtyalthe PHP, when running svn18:39
dirtyalset the apache home to /18:39
dirtyalso SVN tries to read the .subversion inside the root directory18:39
* paul__ needs more time18:44
g0rd0n_ / ?18:50
paul__life :)18:50
giallunuclear_eclipse, there?22:57
nuclear_eclipsehi giallu23:05
gialluhi23:05
gialluis there a way fora plugin to require an existing function/class/extension ?23:05
nuclear_eclipsewhat do you mean?23:06
nuclear_eclipseexample?23:06
gialluI mean how it should be best to handle the situation: plugin X requires php-xml, but php-xml is not installed23:06
nuclear_eclipsehmm23:07
nuclear_eclipsewell, the plugin's main classfile could check for the extension, and only declare the class if found? I dunno23:08
gialluwhat about extending the plugin_dependency function to handle this?23:09
gialluit would catch it at installation, IMHO the proper place23:09
nuclear_eclipseyeah23:09
paul__what's php-xml23:09
giallupaul__, an example23:09
paul__:P23:09
gialluso let's see...23:10
nuclear_eclipseI could see adding an ->extensions property that lists a set of php extensions needed, and checking those similar to normal plugin dependencies23:10
paul__strikes me as somehting for a function within the plugin to do23:10
paul__a pre-install type function23:10
nuclear_eclipsewell, the benefit of having the core do it would be that the manage plugins page could list the missing dependencies the same way it does for plugin requirements23:11
paul__then we get to deal with stuff like23:11
nuclear_eclipsebut yes, the plugin could do this itself already23:11
paul__what if a plugin requires xdebug 2.5 as opposed to xdebug 2.0 for example23:11
paul__a check for 'xdebug' would return true in both cases23:11
gialluok. so you both see a better fit to add a "pre_install_check()" kind of method to plugins?23:14
nuclear_eclipsewell, that's already there23:14
* giallu looks23:14
nuclear_eclipsea plugin's ->install() method can return false to fail installation23:14
paul__what it should be possible to do though is have the pre_install_check populate the missing dependencies bit with information23:14
paul__so for example, if you had a video encoding plugin for mantis, you could check if the shell has ffmpeg on it, and if it doens't tell the end user for example23:14
paul__nuclear_eclipse: I like your idea!23:14
nuclear_eclipsewould be nice if php had a function for checking the version of installed extensions...23:14
paul__yea23:15
gialluok, so I overload the install() function and add my checks23:16
nuclear_eclipseyep23:17
gialluno docs there, I could hardly tell that was the right thing to use :(23:17
* giallu checking docbook23:18
nuclear_eclipseyeah, docbook is still way behind the implementation =\23:18
nuclear_eclipseI added a lot of documentation to the "how to make a plugin" part last week, just need to finish that and document the actual specifics of the plugin interface23:21
giallutbh, I'd exptected some doc _in_ the MantisPlugin.class.php file23:21
* giallu adding some23:21
nuclear_eclipsethanks :)23:23
nuclear_eclipsethe code *is* the documentation ;)23:24
paul__didn't we add some already? ;/23:24
giallunuclear_eclipse, how do I go about adding errors messages on the failed install?23:51
* giallu is sorry for being clueless23:51

Generated by irclog2html.py