Sebastian Reitenbach | 1 Jun 2008 17:05
Picon

Re: NSURL different in libFoundation and GNUstep base?

developer@... wrote: 
> On 14.04.2008, at 07:15, Sebastian Reitenbach wrote:
> >> This would be a major bug in GNUstep, which is quite unlikely. As
> >> mentioned the whole approach is utterly wrong. It is more likely that
> >> stringByAddingPercentEscapesUsingEncoding only encodes a subset and  
> >> is
> >> not a proper URL fragment encoder.
> > The gnustep documentation to the method implementation starts this  
> > way:
> > /**
> > * Constructs a new ASCII string which is a representation of the  
> > receiver
> > * in which characters are escaped where necessary in order to  
> > produce a
> > * legal URL.<br />
> 
> If you pipe a whole URL through it and it still can be parsed as a  
> URL, its obviously wrong. The whole point of escaping is that the  
> result is NOT parsed.
> 
> >> libFoundation is BSD license, we can't include GS code. If you want  
> >> to
> >> write portable code, just use the methods provided by NGExtensions.
> > File where I added the stringByReplacingPercentEscapesUsingEncoding  
> > method
> > was in sope-core/NGExtensions/NGExtensions.
> 
I figured out, that there is no problem with NSURL, but with 
WOHTTPURLHandle.m.
It omits the query in the uri.
(Continue reading)

Frank Reppin | 2 Jun 2008 09:08
Favicon

Re: svn server down

Hi all,

Helge Hess wrote:
[...]
>> Subject: Re: [OGo-Developer] svn server down
>> Reply-To: developer@...
>>
>>> Hm, is down, you are right. I thought you talked about svn.ogo, which
>>> is up and running:
>>>   http://svn.opengroupware.org/OpenGroupware.org/trunk/
>>
>> Any news?

weird - just fixed that manually (once again). It somehow messes
up permissions on those repo/db/ files for no apparent reason (at least
I'm not aware of any changes to any script or configuration).

I'll do a more in depth check to see if I can eliminate this woe.

Thankyou for reporting! ;)

Best wishes,
frank\

--

-- 
Frank Reppin

fr@...            phone: +49-391-66230
http://www.skyrix.com    fax:   +49-391-6623-599

(Continue reading)

Adam Tauno Williams | 7 Jun 2008 19:12
Gravatar

Tasks, Creators, Teams, & LSFetchToDoJobsCommand

I noticed something I don't understand when the ToDo lists are
retrieved.

Looking at the SQL ...
SELECT t1.accounting_info, t1.actual_work, t1.associated_companies,
t1.associated_contacts, t1.category, t1.job_comment, t1.completion_date,
t1.creator_id, t1.db_status, t1.end_date, t1.executant_id,
t1.is_control_job, t1.is_team_job, t1.job_id, t1.job_status,
t1.keywords, t1.kilometers, t1.kind, t1.last_modified, t1.name,
t1.notify_x, t1.object_version, t1.parent_job_id, t1.percent_complete,
t1.priority, t1.project_id, t1.sensitivity, t1.source_url,
t1.start_date, t1.timer_date, t1.total_work FROM  job t1 WHERE
((t1.job_status <> '30_archived') AND  ((t1.job_status <> '25_done')
OR(t1.creator_id
IN
(445160,423400,949410,1096320,55000,955240,970990,9991,949540,9154000,10597021,9153880,9153790,10003,142780,10100,970730,11530)))
AND  (t1.executant_id IN (445160,423400,949410,1096320,55000,955240,970990,9991,949540,9154000,10597021,9153880,9153790,10003,142780,10100,970730,11530)))
... resulting from ...
    qualifier = [qualifier initWithEntity:[self destinationEntity]
                           qualifierFormat:
                                  <at> "((%A <> '% <at> ') AND "
                                  <at> " ((%A <> '% <at> ') OR(%A IN (% <at> ))) AND "
                                  <at> " (%A IN (% <at> )))",
                                  <at> "jobStatus", LSJobArchived,
                                  <at> "jobStatus", LSJobDone,
                                  <at> "creatorId", s,
                                  <at> "executantId", s,
                                 nil];

When would the *creator* of a task be a team?  Wouldn't ...
(Continue reading)

Helge Hess | 7 Jun 2008 20:25
Favicon

Re: Tasks, Creators, Teams, & LSFetchToDoJobsCommand

On 07.06.2008, at 19:12, Adam Tauno Williams wrote:
> Is there some use-case where the creator of the team would be a team?

I think you are right, the creator should always be a plain user id.

Greets,
   Helge
-- 
Helge Hess
http://www.helgehess.eu/
--

-- 
OpenGroupware.org Developer
developer@...
http://mail.opengroupware.org/mailman/listinfo/developer

Adam Tauno Williams | 8 Jun 2008 03:17
Gravatar

Re: Tasks, Creators, Teams, & LSFetchToDoJobsCommand

On Sat, 2008-06-07 at 20:25 +0200, Helge Hess wrote:
> On 07.06.2008, at 19:12, Adam Tauno Williams wrote:
> > Is there some use-case where the creator of the team would be a team?
> I think you are right, the creator should always be a plain user id.

Changed in r2116

Query now looks like -
 SELECT t1.accounting_info, t1.actual_work, t1.associated_companies,
t1.associated_contacts, t1.category, t1.job_comment, t1.completion_date,
t1.creator_id, t1.db_status, t1.end_date, t1.executant_id,
t1.is_control_job, t1.is_team_job, t1.job_id, t1.job_status,
t1.keywords, t1.kilometers, t1.kind, t1.last_modified, t1.name,
t1.notify_x, t1.object_version, t1.parent_job_id, t1.percent_complete,
t1.priority, t1.project_id, t1.sensitivity, t1.source_url,
t1.start_date, t1.timer_date, t1.total_work FROM  job t1 WHERE
((t1.job_status <> '30_archived') AND  ((t1.job_status <> '25_done')
OR(t1.creator_id = 10100)) AND  (t1.executant_id IN
(445160,423400,949410,1096320,55000,955240,970990,9991,949540,9154000,10597021,9153880,9153790,10003,142780,10100,970730,11530)))

--

-- 
OpenGroupware.org Developer
developer@...
http://mail.opengroupware.org/mailman/listinfo/developer

Sebastian Reitenbach | 8 Jun 2008 14:20
Picon

how to retrieve the object_version of a enterprise/person from an address

Hi,

for the OGoAddressMapLinks, I wanted to save the coordinates that I looked up on
google persistently, so I need to recognize, when an address changes, to lookup
new coordinates.
In the address table there is a object_version fields, but it doesn't seem to be
used. The address version is bound to the company object_version.
The address entity has a companyId, pointing to the company that has the address
assigned. 

I'm struggling to figure out the version of the company, any hint how this can
be done easily. Or a pointer to some class in the ogo sources as an example
would be great.

kind regards
Sebastian

--

-- 
OpenGroupware.org Developer
developer@...
http://mail.opengroupware.org/mailman/listinfo/developer

Adam Tauno Williams | 8 Jun 2008 18:08
Gravatar

Re: how to retrieve the object_version of a enterprise/person from an address

> for the OGoAddressMapLinks, I wanted to save the coordinates that I looked up on
> google persistently, so I need to recognize, when an address changes, to lookup
> new coordinates.
> In the address table there is a object_version fields, but it doesn't seem to be
> used. The address version is bound to the company object_version.
> The address entity has a companyId, pointing to the company that has the address
> assigned. 
> I'm struggling to figure out the version of the company, any hint how this can
> be done easily. Or a pointer to some class in the ogo sources as an example
> would be great.

The only way I can think of is to retrieve the company record from the
database.

gid = [[context typeManager] globalIDForPrimaryKey:companyId];
if (gid == nil)
  return nil;
company = [context runCommand: <at> "object::get-by-globalid",
                                  <at> "gid", companyId,
                                  <at> "returnType", 
                [NSNumber numberWithInt:LSDBReturnType_OneObject],
                                 nil];
if [company isNotNull] {
  ...
  ... [company valueForKey: <at> "objectVersion"] ...
  ...
}

Just off the top of my head;  that probably won't work. :)

(Continue reading)

Helge Hess | 9 Jun 2008 01:24
Favicon

Re: how to retrieve the object_version of a enterprise/person from an address

On 08.06.2008, at 18:08, Adam Tauno Williams wrote:
> Or maybe there is some way to use the toEnterprise attribute/method  
> from the LSAddress object you have (LSAddress is an EOGenericRecord).

Its possible that there is such a KVC key, but its not recommended to  
use those.

> In the address table there is a object_version fields, but it  
> doesn't seem to be used. The address version is bound to the company  
> object_version.

Would be good if both versions would bump if an address changes. But  
its important that the company version increases when an address  
changes.

Greets,
   Helge
-- 
Helge Hess
http://www.helgehess.eu/
--

-- 
OpenGroupware.org Developer
developer@...
http://mail.opengroupware.org/mailman/listinfo/developer

Sebastian Reitenbach | 9 Jun 2008 01:58
Picon

Re: how to retrieve the object_version of a enterprise/person from an address

developer@... wrote: 
> On 08.06.2008, at 18:08, Adam Tauno Williams wrote:
> > Or maybe there is some way to use the toEnterprise attribute/method  
> > from the LSAddress object you have (LSAddress is an EOGenericRecord).
> 
> Its possible that there is such a KVC key, but its not recommended to  
> use those.
> 
> > In the address table there is a object_version fields, but it  
> > doesn't seem to be used. The address version is bound to the company  
> > object_version.
> 
> 
> Would be good if both versions would bump if an address changes. But  
> its important that the company version increases when an address  
> changes.
I edited a single address via the webui, and the object_version of the company
got bumped, so that should be OK.
So you mean the unused object_version of the address could be considered a bug? 
A filled object_version field in the address table would make life a lot easier
for my task.
Maybe I should investigate, how to get it filled, instead of trying to figure
out the object version of the assigned company.

kind regards
Sebastian

> 
> Greets,
>    Helge
(Continue reading)

Helge Hess | 9 Jun 2008 02:02
Favicon

Re: how to retrieve the object_version of a enterprise/person from an address

On 09.06.2008, at 01:58, Sebastian Reitenbach wrote:
> So you mean the unused object_version of the address could be  
> considered a bug?

Well, not a bug, an unimplemented feature.

> A filled object_version field in the address table would make life a  
> lot easier for my task.
> Maybe I should investigate, how to get it filled, instead of trying  
> to figure out the object version of the assigned company.

Yes, the code which bumps the company version on changed addresses  
could probably also bump the address version field. Don't know exactly  
how the specific code is setup.

Helge
-- 
Helge Hess
http://www.helgehess.eu/
--

-- 
OpenGroupware.org Developer
developer@...
http://mail.opengroupware.org/mailman/listinfo/developer


Gmane