Wednesday, 2010-05-05

*** Quits: daryn (~INTERACT\@h127.146.16.98.dynamic.ip.windstream.net) (Quit: daryn)00:19
*** Quits: wolog (~wolog@AOrleans-152-1-63-64.w90-21.abo.wanadoo.fr) (Remote host closed the connection)01:07
*** Quits: siebrand_alt (~beis@sm.xs4all.nl) ()01:51
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 276 seconds)01:57
*** Joins: wolog (~wolog@195.6.104.193)02:35
*** Joins: mantisbt_00674 (~d5442f94@gateway/web/freenode/x-bgvfuvnhojvcnmle)02:41
*** Quits: mantisbt_00674 (~d5442f94@gateway/web/freenode/x-bgvfuvnhojvcnmle) (Quit: Page closed)02:49
*** Joins: kirillka (~Miranda@global01.vester.ru)04:26
*** Quits: AceSMcCloud (~acesmcclo@cpc4-craw6-2-0-cust461.croy.cable.virginmedia.com) (*.net *.split)04:46
*** Joins: AceSMcCloud (~acesmcclo@cpc4-craw6-2-0-cust461.croy.cable.virginmedia.com)04:47
*** Joins: moto-moi (~hylke@cara.xs4all.nl)04:51
*** Joins: chrisfrog (~chris@host81-149-143-14.in-addr.btopenworld.com)05:13
chrisfroghey05:13
chrisfrogI use mantis as our helpdesk, I would like to add a page on our internal site that will allow users to add a bug05:13
chrisfrogcan this be done without the user loging in05:14
*** Quits: chrisfrog (~chris@host81-149-143-14.in-addr.btopenworld.com) (Read error: Connection reset by peer)05:47
*** Joins: chrisfrog (~chris@host81-149-143-14.in-addr.btopenworld.com)05:53
*** Joins: mantisbt_34837 (~d5442f94@gateway/web/freenode/x-tqnofaqjyczqifwj)06:04
*** Quits: mantisbt_34837 (~d5442f94@gateway/web/freenode/x-tqnofaqjyczqifwj) (Quit: Page closed)06:10
*** Joins: paul__ (~52c6fa02@gateway/web/freenode/x-yzhrfcyzsbaxobju)06:53
paul__mo06:53
*** Joins: Kornel^aardvark (~kornel@fw1.aardvarkmedia.co.uk)07:05
nuclear_eclipsechrisfrog: you can enable anonymous access, and give the anonymous user reporter privileges07:06
nuclear_eclipsemy only caution is that if the mantis site is publicly accessible, you will likely end up with a lot of spam as bugnotes, but if it's internal access only, there shouldn't be a problem with doing that07:07
Kornel^aardvarkIs mantisbt-dev@lists.sourceforge.net right place to submit patches?07:13
nuclear_eclipseKornel^aardvark: preferably, open a bug/feature request on the tracker and attach the patch there, and then link to that bug from the discussion on the dev list07:15
*** Joins: mantisbt_94818 (~d5442f94@gateway/web/freenode/x-fbgyrzfurblsrhzf)07:46
dhx_mhi08:09
dhx_mKornel^aardvark: I saw your patches and like them, I'll see about committing them soon :)08:09
dhx_mKornel^aardvark: where they against the 1.2.x or 1.3.x branch?08:09
nuclear_eclipseah, right, those are your patches :P08:10
nuclear_eclipseKornel^aardvark: wasn't paying attention earlier when you asked that about the list =\08:11
nuclear_eclipsedhx_m: my 2c is that the bug fixes should hit both 1.2.x and 1.3.x, but the CSS related changes, if approved, should only hit 1.308:12
dhx_mnuclear_eclipse: I was actually planning on only committing to 1.3.x :)08:14
dhx_mnuclear_eclipse: except if there were bug fixes, like you said08:14
nuclear_eclipseok, just wanted to verify08:14
Kornel^aardvarkThe patch is for git master.08:23
dhx_mfantastic :)08:25
dhx_mit's so refreshing to have patches submitted that are correct in every way I've seen so far :D08:25
dhx_magainst git master, using git format-patch, correct code style, etc :)08:26
nuclear_eclipseyeah, I more or less always have to recreate the patch by hand for some reason =\08:26
paul__dhx_m: mo08:29
paul__dhx_m: summarise to daryn our chat on templates/css3 etc08:29
paul__btw, my mantisforge.org box was being moved physically apparently last ngiht08:30
dhx_mpaul__: hi08:31
paul__30 minutes08:31
dhx_mpaul__: will do when daryn is on next08:31
dhx_mwithout warning?08:31
paul__well08:31
paul__it seems they did send *one* warning08:31
paul__saying you might want to schedule it to shut done at 10pm08:32
paul__that:08:32
nuclear_eclipselet me guess, you don't ever read your email..08:32
paul__a) ended up in my junk mail08:32
paul__b) was sent >1 month ago08:32
dhx_mlol08:32
paul__I'd kinda rather have had a more recent message08:32
paul__i'm also disappointed mate who works for the company didn't say anything ;p08:32
paul__however I did make progress last night08:33
dhx_m:)08:36
dhx_mnew IP address?08:36
paul__no08:38
*** Quits: AceSMcCloud (~acesmcclo@cpc4-craw6-2-0-cust461.croy.cable.virginmedia.com) (Read error: Connection reset by peer)08:38
dhx_mthat's good :)08:38
paul__I need to change ip at some point soon though ;/08:38
nuclear_eclipsedoh, I'm getting a segfault in mantis trying to run it on my new linux box running Lucid08:39
dhx_myou mean a segfault in PHP 5.3?08:41
nuclear_eclipsepretty much08:41
nuclear_eclipse[Wed May 05 12:38:10 2010] [notice] child pid 5327 exit signal Segmentation fault (11)08:41
nuclear_eclipse[Wed May 05 12:38:11 2010] [notice] child pid 5335 exit signal Segmentation fault (11)08:41
nuclear_eclipse[Wed May 05 12:41:14 2010] [notice] child pid 5331 exit signal Segmentation fault (11)08:41
nuclear_eclipse[Wed May 05 12:41:14 2010] [notice] child pid 5334 exit signal Segmentation fault (11)08:41
paul__that's apache?08:43
nuclear_eclipseyep08:43
paul__i'll try and diagnose tonight08:43
paul__if wel08:43
paul__i could probably take a stab at what's going on08:43
paul__q: you use mysql or mysqli btw?08:43
nuclear_eclipsemysqli08:44
dhx_mPHP 5.3 = unstable08:44
nuclear_eclipsetell that to Ubuntu :P08:44
dhx_mheh08:44
nuclear_eclipsethey packaged 5.3.2 with Lucid08:44
dhx_mpaul__: it's Apache probably because he's using mod_php :)08:44
paul__php 5.3 = fine08:45
nuclear_eclipseand this is exactly why I decided to grab a separate VPS from Linode to migrate to rather than doing an in-place upgrade on my existing server, *so* happy I've done that now...08:45
*** Joins: afp (~chatzilla@192.122.237.252)08:50
dhx_mKornel^aardvark: I was wondering with PHPTAL whether it's OK to write <element attribute="value" tal:attributes="value phpvar" />08:50
dhx_mKornel^aardvark: ie. does tal:attributes overwrite any existing attributes on an element?08:51
afphello everyone, I am doing research on Open Source application Plugins, and Mantis is a project that I have been given the task of analyzing all of the plugins08:51
dhx_mKornel^aardvark: it seems we've got a big push towards the idea of separating logic from display in MantisBT08:52
dhx_mafp: hi08:52
nuclear_eclipseafp: feel free to ask any questions you like08:52
dhx_mafp: we're the best open source project in the world :p08:52
afpso far I have only been able to find 2 or 3 Mantis plugins, there are plugins for other apps to integrate with mantis, but not that many Mantis Plugins08:53
nuclear_eclipseafp: check git.mantisforge.org08:53
dhx_mafp: have you seen git.mantisforge.org ?08:53
afpI definitely like your project and applaud your work08:53
afpthats what I was looking for!08:53
afpthanks guys, I'll be right back08:53
dhx_mafp: if you come to any conclusions/recommendations as part of your research report, feel free to send them our way :)08:53
nuclear_eclipseafp: googling for 'mantis plugins' really only shows up the unsupported plugins from older versions08:53
dhx_mafp: and as nuclear_eclipse mentioned, we're here to answer questions too08:53
paul__dhx_m: git.mantisforge will probably be back this evening08:57
paul__when i get home08:57
afphaha, I was just going to ask about that, I just tried to go there and am getting a timeout08:58
nuclear_eclipsehttp://webcache.googleusercontent.com/search?q=cache:9JRLnZS4uXEJ:git.mantisforge.org/+mantisforge&cd=3&hl=en&ct=clnk&gl=us&client=ubuntu 08:58
paul__the box was physically moving yesterda08:59
paul__apparently08:59
paul__:)08:59
dhx_merror: Ref refs/heads/master is at 3ea22ce73928309abfb475f0464f974b149ec800 but expected e6304a1c7cdce04554bd883f39ab5f7c93aeba5e08:59
dhx_m:(08:59
nuclear_eclipsedhx_m: wht are you trying to do?09:00
dhx_mnuclear_eclipse: git am -s < patch_set_from_kornell09:00
dhx_mI suppose it's trying to tell me that it doesn't know about the commits from the patch (in the event of a rebased tree being used to generate the patch set)09:01
nuclear_eclipsedhx_m: try adding -3 param09:02
nuclear_eclipseie `git am -s3 < ...`09:02
dhx_mprevious rebase directory /var/www/localhost/htdocs/mantis-git/.git/rebase-apply still exists but mbox given.09:04
dhx_mhmm09:04
nuclear_eclipsegit am --abort09:04
dhx_mgit am --abort and git rebase --abort both tried09:04
nuclear_eclipsehmm09:04
dhx_moh hmm09:04
dhx_mnow it works09:04
dhx_mmust have been on the wrong branch when trying the --abort09:04
nuclear_eclipsedoh09:05
dhx_m:) thanks09:05
Kornel^aardvarkdhx_m: tal:attributes does overwrite in-source attributes.09:05
dhx_mI could of sworn I fixed the BILLING_INC_ALLOW bug... maybe it was something else I fixed instead :)09:06
dhx_mKornel^aardvark: thanks :)09:06
*** Joins: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com)09:07
dhx_mdaryn: ! :)09:07
nuclear_eclipsehi daryn 09:07
darynmorning09:07
Kornel^aardvarkdhx_m: it doesn't merge them though, which sometimes leads to "WTF" bugs if you don't notice tal:attributes (e.g. class name set here and there)09:07
dhx_mKornel^aardvark: thanks :)09:09
Kornel^aardvarkdifferent question: is there nice way to add custom attributes to projects or project categories? (e.g. name of client who owns the project, whether category is billable or non-billable)09:09
dhx_mdaryn: hi09:09
dhx_mKornel^aardvark: not at the moment :(09:10
dhx_mKornel^aardvark: I suppose we could add some plugin events to make it possible with a plugin09:10
dhx_mKornel^aardvark: and that would be fairly trivial to do09:10
darynso, any thoughts on my template branch?09:10
dhx_mKornel^aardvark: also I advise you to check out the TimeTracking plugin from John (nuclear_eclipse) @ git.mantisforge.org when it's back up09:10
Kornel^aardvarkI haven't looked at template branch yet - couldn't connect09:10
dhx_mKornel^aardvark: it does everything the built-in time tracking system does in a much much better way :)09:11
dhx_mdaryn: I had a few points to make, but the overall direction is good IMO :)09:11
dhx_mI was looking at Plone's TAL templates yesterday too09:11
darynk. i'm finishing up some updates that will add a layout macro and some MantisTemplate functions to replace html api calls09:11
dhx_mit's not bad for some inspiration of what to do/what not to do09:12
dhx_msome of their templates are unreadable because they're too complex, have weird line breaks, etc09:12
darynok i'll take a look too09:12
dhx_mwhat sort of html_ functions do you think we need to keep?09:12
dhx_mI was actually thinking of refreshing MantisBT's HTML code as we go09:13
dhx_mie. remove table layouts09:13
dhx_mor did you want to make that a phase #2 task?09:13
dhx_mI'm not sure it'd be much easier porting the current layout 1:1... although I guess it'd be nice for people using the new version to get the old look and feel09:13
daryni was thinking that would be phase 209:14
Kornel^aardvarkI agree. As much as I dislike current markup, too much at once could be a problem, and it would be more difficult to compare generated code in case something wasn't right.09:15
daryna lot of the html stuff is outputting stuff based on different configurations09:15
darynso, the new functions just assign variables to the template as necessary09:15
darynwe'll be able to remove some of that eventually too I think but it's a bit hard to see what can be changed at this point09:16
Kornel^aardvarkdaryn: I hope you're not passing PHPTAL instance around...09:16
Kornel^aardvarkfor templates IMHO best approach is functional programming - don't assign variables, return arrays instead09:16
Kornel^aardvarkand merge those arrays into huge tree that is then passed to template engine to render09:17
Kornel^aardvarkPHPTAL makes tree traversals quite easy09:17
Kornel^aardvark$out['menu'] = get_menu_items(); $out['buglist'] = list_bugs(); $out['footer'] = get_footer_settings(); etc.09:18
dhx_mI like the idea of that approach too :)09:19
darynwell, let me push this update and then we can take a look and see if it should be different.09:19
dhx_mKornel^aardvark: daryn has currently using the magic __set method to allow $template->somevar to add a value to the array09:19
dhx_mafaik09:19
darynyes, depending on the template engine being used09:20
dhx_m$template->buglist = list_bugs();09:20
dhx_mwould set $this->variables['buglist'] = list_bugs() I think09:20
darynsort of09:20
darynit's different because the template engine assignments are different09:20
dhx_myep09:21
Kornel^aardvarkthis might work too as long as most functions return data09:23
Kornel^aardvarkbecause otherwise template namespace becomes another bag of global variables with all mess associated with globals09:23
darynThe template functions I'm creating here are specifically for global template display.  Basically layout stuff.09:25
darynAnd as I mentioned some of that may be able to go away. I just don't know yet how best to do it.09:25
darynShould be easy to change once we figure that out.09:26
darynand some of that will depend on what other api/class changes we make.  For example, adding a config class09:26
darynI'm not opposed to changing any of this by the way.  I just want to keep it moving forward as it has been talked09:27
darynabout with no real visible action for too long09:27
CIA-21Mantisbt: kornel * reb54f12ce274 /view_all_inc.php: Added classnames to buglist rows and thead/tbody elements.09:27
CIA-21Mantisbt: kornel * r4c672c532593 /core/bugnote_api.php: Removed odd cast in billing.09:27
CIA-21Mantisbt: kornel * r5cf6eb6cfb45 / (11 files in 2 dirs): Removed obsolete language attribute09:27
CIA-21Mantisbt: kornel * r0ac6cac8e5c0 /core/html_api.php: Added xmlns required for XHTML09:27
CIA-21Mantisbt: kornel * r06c6b2ed47fc / (billing_inc.php billing_page.php): Fixed bugs preventing billing page from loading09:27
CIA-21Mantisbt: kornel * rac99acc366d1 / (bugnote_view_inc.php css/default.css): Made time-tracking notes CSS-friendly09:28
CIA-21Mantisbt: kornel * rf7c4ea2e3a74 / (bugnote_view_inc.php css/default.css): Refactored bugnote CSS classes: split bugnote-note-private into bugnote-note and bugnote-private.09:28
CIA-21Mantisbt: kornel * r2b10a2e7dc99 /bugnote_view_inc.php: Added CSS classes to bugnote metainformation.09:28
CIA-21Mantisbt: kornel * rc4c5ed03b54f / (bugnote_view_inc.php css/default.css): Styled total time tracked field.09:28
Kornel^aardvarkw00t09:30
dhx_mdaryn: I agree :)09:31
nuclear_eclipsedhx_m: you planning to port the fixes to 1.2?09:31
dhx_mKornel^aardvark: thanks for the patches, perfect :)09:31
nuclear_eclipseor do they not apply?09:31
dhx_mnuclear_eclipse: hmmm no?09:31
nuclear_eclipseis billing working in 1.2?09:31
dhx_mnuclear_eclipse: I assume so...09:34
nuclear_eclipsemind verifying that for me? :P09:34
dhx_mhmm maybe :)09:36
*** Joins: mantisbt_69962 (~c2326e28@gateway/web/freenode/x-icvipqbddfpitmkr)09:38
*** Quits: mantisbt_69962 (~c2326e28@gateway/web/freenode/x-icvipqbddfpitmkr) (Client Quit)09:38
*** Joins: micahg (~micah@ubuntu/member/micahg)09:39
dhx_mnuclear_eclipse: I don't think there is anything needing urgent backporting from that patch set09:39
nuclear_eclipseok09:39
dhx_mit strikes me as being gradual improvements rather than urgent bug fixes09:40
dhx_mif we're assuming the position of keeping MantisBT 1.2.x as stable as possible09:40
dhx_mie. change as few lines of code as possible09:40
dhx_m(to make major bugs go away)09:41
nuclear_eclipsedhx_m: well, I mean if the billing page is broken on 1.2, and one of those patches fixes that, it seems like a worthy backport to 1.2....09:41
dhx_mnuclear_eclipse: yep it should be fine from when I last tested it09:45
nuclear_eclipseok09:45
nuclear_eclipsethat's all I wanted to know :P09:46
dhx_m:)09:46
dhx_mKornel^aardvark: does the TAL DTD from zope.org also apply to PHPTAL?09:47
dhx_mmissing features don't strike me as being an issue09:48
dhx_mit's more a problem of renamed attributes, etc09:48
Kornel^aardvarkdhx_m: I haven't checked, but should be fine.09:50
dhx_mKornel^aardvark: ok thanks :)09:51
Kornel^aardvarkexcept cases which cannot be expressed in DTD at all (custom namespace prefixes, or that any element name in TAL namespace is allowed)09:51
dhx_myep09:52
dhx_mI noticed Plone uses random tal:???? attributes09:52
dhx_msuch as tal:hack for hacky workarounds (ugh!) :)09:52
paul__so we can have tal:Mantis:Language('foo')? :009:53
darynno you can't paul__09:53
darynwe won't let you09:53
darynbut you can do tal:translate="foo"09:53
Kornel^aardvarkyou could have ${mantis-language:foo} (or tal:content="mantis-language:foo"09:54
Kornel^aardvark)09:54
dhx_mor i18n: ;)09:54
darynaright...that's what i meant dhx_m09:54
daryn:)09:54
paul__I like dhx's idea09:54
paul__write our own parser :)09:54
daryntal has an interface for that so it still uses the i18n:translate syntax09:55
dhx_mheh I have lots of ideas :p09:55
Kornel^aardvarkcustom expression modifiers would be nice for URLs, e.g. <a href="${bug_url:bug_id}"> or for conversion between project ID and names.09:55
dhx_mwe have much larger issues with translation to worry about than the XHTML template syntax09:56
Kornel^aardvarkand I've beefed up prefilters recently, so if you really really want, you could add <mantis:foo> tags yourself.09:57
dhx_mpluralisation, how to key translations (by the entire English string vs a short key), etc09:57
dhx_mso ${bug_url:bug_id} is equivalent of using tal:attributes="href ..."09:58
dhx_m?09:58
Kornel^aardvarkdhx_m: pretty close. tal:attributes is able to omit entire attribute if value is NULL09:59
dhx_maha :)09:59
Kornel^aardvarkand href="${}" is simple substitution, so it'll output href="" for nulls09:59
Kornel^aardvarkpluralisation - in your PHPTAL_TranslationService::translate() you should inspect variables set10:01
*** Joins: agronholm (agronholm@2001:1bc8:102:413a:b903:11a6:5d02:d24e)10:01
Kornel^aardvarkPHPTAL calls all necessary PHPTAL_TranslationService::setVar() before asking for translated strign10:01
agronholmhi, has anyone been able to get mantis 1.2.1 working with postgresql?10:01
*** Parts: afp (~chatzilla@192.122.237.252)10:01
agronholmcan't upgrade from 1.1.8 and can't even get a fresh installation to work10:02
agronholmthe website is also slow as hell, what's with that?10:03
nuclear_eclipsewhich site?10:04
agronholmwww.mantisbt.org10:05
*** Quits: kirillka (~Miranda@global01.vester.ru) (Quit: kirillka)10:05
*** Joins: obergix[work] (~olivier@mag77-1-82-238-14-130.fbx.proxad.net)10:05
obergix[work]hi10:05
nuclear_eclipseseems to be be just fine to me...10:05
dhx_mKornel^aardvark: we'd still need to pass in a pluralisation number with i18n: somehow10:05
obergix[work]is mantisforge down ?10:05
Kornel^aardvarkdhx_m: i18n:name is for that10:05
agronholmmantisbt.org keeps timing out10:05
agronholmbut regardless, has 1.2.1 been tested with postgresql? also, what's the minimum required php version?10:06
Kornel^aardvark<p i18n:translate="">You have <span i18n:name="num" tal:content="emails/count" /> emails</p>10:06
darynagronholm I have no problem with mantisbt.org either10:06
Kornel^aardvarkwill give "You have ${num} emails" to translate10:06
nuclear_eclipsephp 5.1.2 is min version10:06
nuclear_eclipse5.3 is partially supported, but there seem to be quite a lot of issues with it atm10:06
Kornel^aardvarkand you'll be able to get content of $num when translating the key10:06
dhx_mKornel^aardvark: ah I see what you mean... but in some languages the words themselves change dramatically depending of whether you're talking about one object, two, four, etc10:06
agronholmwell I have 5.2.4 and I just can't get 1.2.1 working10:06
nuclear_eclipseas for postgres, I'm not sure if anyone on the team uses it or not10:07
agronholmI have 1.1.8 working as fine as it would work with postgresql10:07
* obergix[work] is looking for example of plugin code using the DB... and can't seem to find one :-(10:07
daryndhx_m: Arabic for example10:07
Kornel^aardvarkdhx_m: I know. PHPTAL doesn't contain logic for that, it's problem of the translation service.10:07
agronholmwasn't one of the main goals of the 1.2 release to add official support for other rdbms besides mysql?10:07
*** Joins: bruno_bruno (~WebIRC@radio.redenorte.net)10:07
nuclear_eclipsehttp://webcache.googleusercontent.com/search?q=cache:GkpVzmWhe_8J:git.mantisforge.org/w/source-integration.git+mantisforge&cd=4&hl=en&ct=clnk&gl=us&client=ubuntu 10:07
bruno_brunonuclear_eclipse: remember me from yesterday? having that issue with the email10:08
nuclear_eclipseobergix[work]: a few of the plugins I wrote use the database, look for anything by jreese@leetcode.net10:08
dhx_mdaryn/Kornel: http://en.wikipedia.org/wiki/Grammatical_number10:08
nuclear_eclipsewow, this channel is hopping now :P10:08
dhx_mhaha10:08
daryngive it 5 minutes...i10:08
Kornel^aardvarkdhx_m: You don't need to explain this to me. My native language is Polish which has complex pluralisation.10:09
nuclear_eclipseagronholm: we've had semi-official support for other database types via adodb since 1.1.0, but most of us don't personally use anything but mysql, sorry =\10:09
dhx_mKornel^aardvark: yep, it is something which would unfortunately not fit within XHTML syntax afaik10:09
dhx_mnuclear_eclipse: I use postgresql :)10:09
agronholmdhx_m, did you get 1.2.1 to work?10:10
obergix[work]nuclear_eclipse: well... if I could manage to find some tarballl... that'd help10:10
agronholmI can get it installed but when I go to the login page, I get a php error10:10
nuclear_eclipseobergix[work]: just a sec, and I'll put one on my server10:11
Kornel^aardvarkdhx_m: you shouldn't put pluralisation algorithms in XHTML. Just put i18n:translate + i18n:name, and translation backend will be able to handle that.10:11
agronholmPHP Fatal error: Call to undefined function event_clear_callbacks() in /opt/mantisbt-1.2.1/core/error_api.php on line 13510:11
dhx_magronholm: I got 1.3.x to work :)10:12
dhx_magronholm: that error is unrelated to your database type10:12
agronholmI know10:12
nuclear_eclipseagronholm: that sounds like you didn't get a complete 1.2.110:12
agronholmnuclear_eclipse, huh?10:12
agronholmwhere is that function imported from then?10:12
dhx_mit sounds like a common problem we see with user upgrades10:12
nuclear_eclipsethat function was added between 1.2.0 and 1.2.1 to core/event_api.php10:13
dhx_msome files are extracted and overwritten, but some 1.1.8 files remain10:13
agronholmI didn't overwrite 1.1.810:13
nuclear_eclipsehmm10:13
agronholmI did a fresh install10:13
dhx_mit's best to backup your old MantisBT directory and start again with a fresh copy of 1.2.110:13
dhx_mthen copy your old configuration into the new directory10:13
dhx_mhmm10:13
dhx_mbug #11883 for those following at home10:13
dhx_mKornel^aardvark: perhaps, but what if your string has multiple numbers contained within...10:14
Kornel^aardvarkdhx_m: PHPTAL will pass all numbers to your translation engine and let you worry about it10:15
bruno_brunocan somebody help me with my email issue?10:15
agronholmnuclear_eclipse, perhaps the problem is the fact that error_api.php never imports that file?10:16
dhx_mobergix[work]: mantisforge is down while the server is being moved, ETA from paul__ is ~8hrs I suppose10:16
obergix[work]dhx_m: why aren't those things told on the ML ?10:16
nuclear_eclipseit shouldn't need to10:16
agronholmwell obviously it does, otherwise I wouldn't be seeing that message10:17
nuclear_eclipsemy only guess is that if your error is happening before the core API's have finished loading...10:17
obergix[work]dhx_m: thanks anyway ;)10:17
dhx_mobergix[work]: ps. I did try to read your emails about web services but it's a bit over my head10:17
dhx_mobergix[work]: have you spoken with Robert?10:17
obergix[work]dhx_m: uh... which emails ? ;)10:18
obergix[work]dhx_m: and which Robert ? ;)10:18
agronholmnuclear_eclipse, the thing is, I have hit a dead end with 1.2.1 and can't go forward10:18
nuclear_eclipseagronholm: try comminting out that call to event_clear_callbacks, and see what error message you're getting10:18
agronholmnuclear_eclipse, "Database connection failed. Error received from database was #0: PHP Support for database is not enabled."10:20
dhx_mKornel^aardvark: I understand it now thanks :)10:20
agronholmwhich is kinda funny since the setup phase worked fine10:20
agronholmand I have a running 1.1.8 installation on the same box10:20
dhx_mKornel^aardvark: the lookup key in the translation engine would thus be something like "Welcome ${user}, you have ${mails} unread mails."10:20
Kornel^aardvarkdhx_m: yes10:21
dhx_mKornel^aardvark: where it may be: "Welcome David, you have 8 unread mails."10:21
nuclear_eclipseobergix[work]: http://files.leetcode.net/source-integration.tgz10:21
dhx_mthen the translation engine looks up the key with the ${user} and ${mails} replacements already made10:21
agronholmnuclear_eclipse, found it, there was another bunch of config lines in config_inc for the default mysql settings...10:22
Kornel^aardvarkdhx_m: yes. You'll get setVar('user','David'); setVar('mails',8); translate("Welcome ${user}, you have ${mails} unread mails."); and you're supposed to return whatever you want to appear on the page.10:22
agronholmnow I'll just need instructions to upgrade the database from 1.1.8 to 1.2.110:22
agronholmthe automatic ugprade process fell flat on its face10:23
nuclear_eclipseadmin/install.php should work correctly...10:23
agronholmwell it doesn't10:23
obergix[work]nuclear_eclipse: thx alot10:23
nuclear_eclipseagronholm: what breaks?10:23
nuclear_eclipsewould be nice to know so that we can fix it :P10:23
agronholmnuclear_eclipse, I get a unique index violation, I can reproduce it for you, just a moment10:24
nuclear_eclipseregarding categories?10:24
agronholmcan't remember10:24
dhx_mKornel^aardvark: aha I see the architecture now, thanks :)10:24
dhx_mKornel^aardvark: it seems to handle it perfectly10:24
dhx_mKornel^aardvark: although how well can you do this with i18n:attributes?10:25
dhx_mKornel^aardvark: for instance, alt="Comparison of the 5 bug tracking states" on an image10:26
dhx_mmind you, this case doesn't seem like that much of a problem10:26
dhx_mit's not common to need pluralisation in attributes afaik10:27
dhx_mah10:27
dhx_mmaybe i18n:name + i18n:attributes on the same element10:28
agronholmnuclear_eclipse, I don't get it...now it worked fine10:28
Kornel^aardvarkdhx_m: handles it the same way from translation service POV10:28
agronholmnuclear_eclipse, the only thing I did differently was that I now had config_inc.php already filled in10:28
Kornel^aardvarkdhx_m: except you don't get i18n:name indirection, and use variables directly. <input type="submit" value="Magically resolve ${num} bugs"/> would give setVar('num',$num); translate("Magically resolve ${num} bugs");10:30
agronholmI'll try to reproduce the problem without config_inc.php10:30
dhx_moh nice, I didn't realise that setVar was called on every instance of a variable being used directly10:31
dhx_m"This method matches i18n:name calls. It builds an interpolation context for later translate calls. " from http://phptal.org/manual/en/split/i18n-setvar.html10:31
dhx_mperhaps the documentation for that page could include an example of this approach?10:31
Kornel^aardvarkdhx_m: it's called only for i18n:attributes, because there's no other way (you can't stuff an element in there)10:32
dhx_mKornel^aardvark: that is officially very very nice :)10:33
Kornel^aardvarki18n:translate for whole elements looks at i18n:name10:33
agronholmnuclear_eclipse, yup, I can reproduce it10:33
nuclear_eclipseagronholm: what's the full error?10:33
dhx_mKornel^aardvark: it seems PHPTAL is quite robust with translation support then... thanks for all the information/help :)10:34
dhx_mKornel^aardvark: this is one of the key features I'd like to plan into MantisBT for the future :)10:34
agronholmDatabase returned error #-1: ERROR: invalid input syntax for integer: "" (query: UPDATE mantis_bug_table SET category_id=? WHERE project_id=? AND category=?)10:35
dhx_mobergix[work]: sorry for the delay... multiple conversations are confusing me heh... Robert Munteanu10:35
paul__agronhol: are you using our version of adodb, or a system bundled one?10:36
agronholmI don't recall installing adodb myself10:36
agronholmhow can I check?10:36
obergix[work]dhx_m: not sure... I mean, not more than what's in the tracker, or on the ML10:37
dhx_mKornel^aardvark: in your example <input type="submit" value="Magically resolve ${num} bugs"/> would give setVar('num',$num); translate("Magically resolve ${num} bugs"); ... should it be i18n:attributes="value 'Magically resolve ${num} bugs'" instead?10:37
* obergix[work] is investigating OAuth btw, and thinking about adding a plugin for OAuth10:37
dhx_mobergix[work]: ah ok he's the one maintaining SOAP and MantisConnect (or whatever it's called) at the moment10:38
nuclear_eclipseobergix[work]: join the club :P10:38
*** Joins: azaghal (~azaghal@109.207.46.235)10:39
obergix[work]dhx_m: ok.... I suppose he's monitoring the ticket, so he's more or less up-to-date ;)10:39
azaghalHi. Any examples/directions on how I could use non-latin (Cyrillic) letters for the $g_source_control_fixed_regexp? Also, is there a way to somehow tweak the type of notes being added to issues when using version control integration (private vs public)?10:40
dhx_mpaul__/nuclear_eclipse: perhaps with PHPTAL we can use a DOM prefilter to let plugins insert/replace DOM elements anywhere within templates (not just on hooks)?10:40
paul__er10:40
paul__in english?10:40
dhx_mdaryn: ping, see last comment :)10:40
*** Quits: Kornel^aardvark (~kornel@fw1.aardvarkmedia.co.uk) (*.net *.split)10:41
*** Quits: mellen (~thansen@x1-6-00-22-02-00-0c-40.k253.webspeed.dk) (*.net *.split)10:41
dhx_mpaul__: well PHPTAL creates a DOM tree afaik and thus plugins could potentially insert/replace stuff in the templates using DOM10:41
darynlater dude...let's just get templates implemented :)10:41
dhx_mI'm just trying to show that PHPTAL is the best option so far (from what I have researched) :)10:42
agronholmnuclear_eclipse, anyway, since it seems I got the upgrade done, I'm leaving now...do you need further info on the problem?10:42
darynok...sell away10:42
bruno_brunocan someone help me configuring the smtp email?10:42
dhx_mobergix[work]: ah sorry I see you're actually working on REST, not SOAP10:42
dhx_mobergix[work]: so they probably don't overlap too much at the moment10:43
bruno_brunoi first came here yesterday with this problem and spoke with nuclear_eclipse10:43
obergix[work]dhx_m: well, that's close ;)10:43
obergix[work]dhx_m: and we might use Zend for both ;)10:43
nuclear_eclipseagronholm: not atm, thanks10:43
nuclear_eclipsebruno_bruno: refresh me on where we got to?10:44
dhx_mobergix[work]: I assume the idea is that the REST "server module" is a PHP script that uses MantisBT API to retrieve data from the database and send it via REST?10:44
dhx_mobergix[work]: php script = an entire PHP project?10:44
bruno_brunoi`m seting up a smtp email to send passwords and stuff10:44
*** Parts: agronholm (agronholm@2001:1bc8:102:413a:b903:11a6:5d02:d24e)10:45
bruno_brunoi guess i typed everything at the config file, but it still doesn`t work10:45
obergix[work]dhx_m: that's it, yes, an entire Zend framework app sitting inside mantis dir and connecting to internal APIs to render RDF of JSON10:45
obergix[work]and more10:45
dhx_mobergix[work]: this sounds quite exciting :)10:46
dhx_mobergix[work]: do any other bug trackers have support for RDF/JSON?10:46
obergix[work]dhx_m: it is... and we want to use the same code more or less for FusionForge or Condendi trackers REST server modules too10:46
obergix[work]dhx_m: these when we're done ;)10:47
obergix[work]dhx_m: and proprietary ones I don't want to name10:47
obergix[work]LaunchPad too10:47
dhx_mobergix[work]: fantastic :)10:48
dhx_mobergix[work]: having a look at http://open-services.net/bin/view/Main/CmResourceDefinitionsV1 ... can that definition be extended to allow querying of MantisBT custom fields via REST/RDF?10:48
obergix[work]dhx_m: interesting is the capacity to construct mashup from Mantis to other web apps10:48
obergix[work]dhx_m: yes, probably, but how is not completely clear to me : there are evolutions in OSLC core to support such advanced things10:49
*** Joins: Kornel^aardvark (~kornel@fw1.aardvarkmedia.co.uk)10:49
*** Joins: mellen (~thansen@x1-6-00-22-02-00-0c-40.k253.webspeed.dk)10:49
nuclear_eclipsebruno_bruno: beyond that, the only thing I can say is to try loading up wireshark and see if you can watch the smtp connection and see if there's anything you can learn from that10:50
nuclear_eclipseor start adding a lot of loggingl/debugging code in mantis/phpmailer10:50
dhx_mobergix[work]: I guess we create a DTD for each MantisBT installation? but I'm not sure a dynamically created DTD is considered workable (ie. only return fields a user has permission to see in the DTD)10:51
obergix[work]dhx_m: hmmm... something like this, but called resource shapes and more RDF oriented...10:51
Kornel^aardvarkdhx_m: DTD? Isn't it dead and useless?10:52
obergix[work]RDF is extensible by nature in any case, so there's just the need to refer to an ontology / OWL schema to mix content inside same RDF document10:52
obergix[work]that's the beauty of RDF ;-)10:52
dhx_mah sorry I'm confusing RDF with DTD :)10:53
bruno_brunonuclear_eclipse: can i post what i set up so you can say if there is something missing?10:53
nuclear_eclipsemantis.pastebin.com10:53
Kornel^aardvarkdhx_m: phew. DTD for permissions sounded scary :)10:54
*** Quits: micahg (~micah@ubuntu/member/micahg) (Ping timeout: 246 seconds)10:54
dhx_mKornel^aardvark: I just realised that our plugins can manipulate PHPTAL's DOM tree to replace/insert things anywhere they want... that sounds quite nice :)10:54
dhx_mKornel^aardvark: potentially this could allow us to remove display event hooks?10:55
Kornel^aardvarkdhx_m: they can? how are you going to implement it?10:55
bruno_brunonuclear_eclipse: http://mantis.pastebin.com/zazuB3dP10:55
paul__dhx_m: we can't assume that a plugin author will use phptal though10:55
dhx_mKornel^aardvark: well I was thinking that plugins could get the PHPTAL DOM tree prior to it being printed and they could append their own code to specific DOM elements10:56
dhx_mKornel^aardvark: maybe this idea is stupid :p10:56
paul__sounds confusing10:56
Kornel^aardvarkdhx_m: if you mean prefilters, then they could, but it might be annoying for plugin authors.10:57
Kornel^aardvarkyou could however let plugins request to call PHPTAL macro (and PHPTAL macros can call other files)10:58
Kornel^aardvark<tal:block tal:repeat="macro macros_to_call_here" metal:use-macro="${macro}"/>10:58
Kornel^aardvarkthis would allow any number of plugins dynamically attach themselves10:58
Kornel^aardvarkand macro could be: "plugindir/plugintemplate.xhtml/foo"10:58
nuclear_eclipsebruno_bruno: try changing the connection_mode to "tls" and smtp_port to "25"10:59
dhx_myep that was the other idea I was thinking of but it wouldn't let plugins remove/replace existing elements10:59
dhx_mI guess there is a possibility for plugins to do both approaches if really needed10:59
dhx_mthe metal: approach is easy but requires us to plant tal:blocks throughout the code at places where we think plugin authors may need it11:00
Kornel^aardvarkindeed11:00
Kornel^aardvarkhowever that seems like most robust solution. If you allow authors to do whatever they want, inevitably some will end up relying on parts of markup you'll want to remove or refactor,11:01
Kornel^aardvarkbreaking plugins unexpectedly.11:02
Kornel^aardvarkit's easier to keep certain pre-defined places around11:02
dhx_mI suppose that the PHP code would usually prepare plugin fields for the template anyway (thus not requiring a metal: macro everywhere)11:02
Kornel^aardvarkbut if you want complete freedom, you could use PHPTAL prefilters and perhaps XPath to sprinkle template with macro calls11:02
dhx_mie. $fields[] = event( 'GET_FIELDS' ); where $fields[] is outputted to the template as per usual (no metal: macros needed)11:03
dhx_myep11:03
dhx_mthanks again for your help today, I've learnt a lot :)11:05
bruno_brunonuclear_eclipse: didn`t work ;/11:06
dhx_mI'll have a play with daryn's branch and see if I can get some of these ideas working11:06
daryndhx_m: i'm trying to finish up an update, should be there soon. just having a frustrating issue atm11:07
nuclear_eclipsebruno_bruno: just a thought, maybe gmail doesn't let you use their smtp server unless you're using google's hosted domain stuff?11:07
bruno_brunonuclear_eclipse: i tried with our own server and it didn`t work anyway11:08
bruno_brunodo i have do setup that email on my php configuration?11:08
nuclear_eclipseyou shouldn't need to11:09
bruno_brunothat`s the second machine where i try to install mantis, and i`m having the same problem11:12
bruno_brunoi`m contacting admin now to see if we can figure what is the problem11:12
*** bruno_bruno is now known as bruno_bruno_afk11:15
*** Quits: mantisbt_94818 (~d5442f94@gateway/web/freenode/x-fbgyrzfurblsrhzf) (Quit: Page closed)11:21
*** Quits: paul__ (~52c6fa02@gateway/web/freenode/x-yzhrfcyzsbaxobju) (Quit: Page closed)12:15
*** Quits: Ragnor (~Ragnor@188.109.88.176) (Ping timeout: 245 seconds)12:28
*** Joins: Ragnor (~Ragnor@dslb-088-077-005-177.pools.arcor-ip.net)12:31
*** Joins: micahg (~micah@ubuntu/member/micahg)12:45
*** Quits: bruno_bruno_afk (~WebIRC@radio.redenorte.net) (Quit: (( WebIRC Gratuito www.webirc.com.br Agora no Orkut! www.orkut.com.br/Main#AppInfo.aspx?appId=301253744845&ref=SR )) (EOF))12:55
*** Quits: Kornel^aardvark (~kornel@fw1.aardvarkmedia.co.uk) (Remote host closed the connection)13:04
*** Quits: wolog (~wolog@195.6.104.193) (Remote host closed the connection)13:11
*** Joins: fanno (~Morten@90.184.93.233)13:18
*** Joins: AzaToth (~azatoth@wikipedia/AzaToth)13:37
*** Joins: bruno_bruno (~WebIRC@radio.redenorte.net)13:42
bruno_brunothe $g_max_?le_size are expressed in bits, bytes, kbytes, mbytes????13:43
*** Joins: wolog (~wolog@AOrleans-152-1-64-79.w90-21.abo.wanadoo.fr)14:17
*** Quits: micahg (~micah@ubuntu/member/micahg) (Read error: Operation timed out)14:20
*** Joins: micahg (~micah@ubuntu/member/micahg)14:21
*** Quits: moto-moi (~hylke@cara.xs4all.nl) (Ping timeout: 276 seconds)14:22
*** Parts: azaghal (~azaghal@109.207.46.235)14:38
bruno_brunonuclear_eclipse: what do I have to do if I want to add a telephone field to an user? is it easy?15:32
*** Joins: MattRac (~Matt@158.181.196-77.rev.gaoland.net)15:33
MattRacHi all, I just installed a MantisBT 1.2.1 and I encounter a trouble15:34
bruno_brunoMattRac: which trouble?15:34
MattRacI'd like that field "product_version" appears in bug report and bug update pages but can't succeed to do that15:35
MattRacSorry, need a little more time than a nerd to type on my keyboard ;-)15:35
bruno_brunojust wanted to check if you have the same problem i`m having :D15:36
MattRacbruno_bruno : With such an avatar, would you be french ?15:36
MattRacAnyway, could somebody here help me in some manner please ?15:37
bruno_brunonope, brazilian with an italian name15:37
MattRacOK ;-)15:38
bruno_brunoyou should check the forums, i guess it is the easier way to get help15:38
MattRacMaybe you can explain to me your issue ... Perhaps I've got a solution ;-)15:39
*** Joins: moto-moi (~hylke@cara.xs4all.nl)15:39
MattRacThanks for this advice. I'll take care of that on tomorrow. Too late here to browse forums :-)15:39
bruno_brunomine have something to do with the server i guess15:41
bruno_brunoemail server15:41
MattRac?? Could you explain a little bit more?15:42
*** Joins: myNick (~chatzilla@dslb-094-219-041-111.pools.arcor-ip.net)15:43
bruno_brunoi think i`m figuring it out with the network admin15:45
bruno_brunowe wanted a bt to the lab15:45
bruno_brunobut using the university server implies a lot of problems15:45
MattRacOK. I also think that your trouble doesn't come from Mantis itself. ;-)15:48
bruno_brunoyes, i figured it out soonner this day, i`m just here to let them know15:52
*** Joins: siebrand (~beis@sm.xs4all.nl)16:06
*** Quits: bruno_bruno (~WebIRC@radio.redenorte.net) (Quit: (( WebIRC Gratuito www.webirc.com.br Agora no Orkut! www.orkut.com.br/Main#AppInfo.aspx?appId=301253744845&ref=SR )))16:17
*** Quits: MattRac (~Matt@158.181.196-77.rev.gaoland.net) (Quit: Leaving.)16:25
*** Quits: myNick (~chatzilla@dslb-094-219-041-111.pools.arcor-ip.net) (Quit: ChatZilla 0.9.86 [Firefox 3.6.3/20100401080539])16:40
*** Joins: paul__ (~4d672186@gateway/web/freenode/x-gtdmvihuevypyeqs)16:43
* paul__ sighs16:43
paul__nuclear_eclipse: mo16:45
*** Joins: |HaruAFK| (~haruka@p54ACE669.dip.t-dialin.net)16:48
*** Quits: moto-moi (~hylke@cara.xs4all.nl) (Quit: Ex-Chat)17:12
*** Quits: obergix[work] (~olivier@mag77-1-82-238-14-130.fbx.proxad.net) (Quit: Ex-Chat)17:14
*** Quits: fanno (~Morten@90.184.93.233) (Read error: Connection reset by peer)17:34
paul__i'll be fixing my git stuff tomorrow hopefully17:49
paul__seems servers' picked up a dead disk when rebooting after move17:49
paul__so need to work out whether that was during move or before ;p17:49
*** Quits: daryn (~INTERACT\@rrcs-76-79-4-2.west.biz.rr.com) (Quit: daryn)18:03
*** Quits: paul__ (~4d672186@gateway/web/freenode/x-gtdmvihuevypyeqs) (Quit: Page closed)18:03
*** Joins: rolfkleef (~rolf@urtica.xs4all.nl)18:08
*** Quits: wolog (~wolog@AOrleans-152-1-64-79.w90-21.abo.wanadoo.fr) (Ping timeout: 260 seconds)18:10
*** Joins: wolog (~wolog@AOrleans-152-1-88-53.w90-21.abo.wanadoo.fr)18:22
*** Quits: AzaToth (~azatoth@wikipedia/AzaToth) (Remote host closed the connection)18:39
*** Quits: rolfkleef (~rolf@urtica.xs4all.nl) (Ping timeout: 260 seconds)19:52
*** Quits: micahg (~micah@ubuntu/member/micahg) (Read error: Operation timed out)20:32
*** Joins: daryn (~INTERACT\@h127.146.16.98.dynamic.ip.windstream.net)20:47
*** Quits: daryn (~INTERACT\@h127.146.16.98.dynamic.ip.windstream.net) (Client Quit)20:49
*** Joins: daryn (~INTERACT\@h127.146.16.98.dynamic.ip.windstream.net)20:50
*** Joins: micahg (~micah@ubuntu/member/micahg)21:51
*** Joins: |Otter| (~haruka@p54ACE8F6.dip.t-dialin.net)22:42
*** Quits: |HaruAFK| (~haruka@p54ACE669.dip.t-dialin.net) (Read error: Operation timed out)22:43
*** Joins: spraus (~45f74470@gateway/web/freenode/x-tlcyvvjqixfjnytu)23:56
spraushello all23:57
sprausis anyone on23:57
dhx_mhi23:57
spraushi dhx23:57
sprausim looking for some help with access issues I think.23:58
sprausI am writing a mantisBT program for the Android and I am returning access to only the "Administration" project on mantisBT.org though I believe I have access to multiple projects such as API, features...23:59
sprausunless there is only one project in mantisBT.org and just many categories23:59

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!