Felix Collins wrote:
> Hi,
>
> I'm trying to assign a resource to a task in MS Project by using the
> example from MSDN for VB...
>
>
> "Use the Add method to add an Assignment object to the Assignments
> collection. The following example adds a resource ide
Hi,
I'm trying to assign a resource to a task in MS Project by using the
example from MSDN for VB...
"Use the Add method to add an Assignment object to the Assignments
collection. The following example adds a resource identified by the
number of 212 as a new assignment for the specified task.
Felix Collins wrote:
>
> Thanks Scott and Robert for your quick help. This list is amazing!
>
> Regards,
> Felix
Using Decorate, Sort , Undecorate...
works like a charm.
Thanks again.
Felix
--
http://mail.python.org/mailman/listinfo/python-list
Robert Kern wrote:
> Felix Collins wrote:
>
> Use the "key" keyword argument to list.sort().
>
> In [1]: outline = ['1.12', '1.1', '1', '1.2']
>
> In [2]: outline.sort(key=lambda x: map(int, x.split('.')))
>
Hi All,
does anyone know any cleaver tricks to sort a list of outline numbers.
An outline number is a number of the form...1.2.3
they should be sorted in the following way...
1
1.1
1.2
1.12
python's alpha sort (by design) sorts them...
1
1.1
1.12
1.2
That's no good for me.
I'm planning on
Hi,
I'm not a regexp expert and had a bit of trouble with the following
search.
I have an "outline number" system like
1
1.2
1.2.3
1.3
2
3
3.1
etc.
I want to parse an outline number and return the parent.
So for example...
parent("1.2.3.4") returns "1.2.3"
The only way I can figure is to
Christopher Subich wrote:
> Scott David Daniels wrote:
Thanks to you both. Wow! what a quick response!
>string.rsplit('.',1)[0]
Clever Python! ;-)
Sorry, I mainly code in C so I'm not very Pythonic in my thinking.
Thanks again...
Felix
--
http://mail.python.org/mailman/listinfo/python-lis