Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'attribute': 0.05; 'filenames': 0.07; '"if': 0.09; 'assigning': 0.09; 'attribute.': 0.09; 'inherited': 0.09; 'object)': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'set()': 0.16; 'subject: \n ': 0.16; 'subject:based': 0.16; 'subject:values': 0.16; 'utc,': 0.16; 'string': 0.17; 'wrote:': 0.17; 'refers': 0.17; '(or': 0.18; 'meant': 0.21; 'wednesday,': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'class': 0.29; 'maybe': 0.29; "skip:' 10": 0.30; 'error': 0.30; 'subject:data': 0.33; 'received:google.com': 0.34; 'list': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'method': 0.36; 'does': 0.37; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'store': 0.38; 'object': 0.38; 'where': 0.40; 'your': 0.60; 'personally': 0.61; 'letters': 0.62; 'show': 0.63; 'apologize': 0.67; 'presented': 0.72; '2013': 0.84; 'greek': 0.84 X-Received: by 10.49.29.99 with SMTP id j3mr453192qeh.38.1362564936354; Wed, 06 Mar 2013 02:15:36 -0800 (PST) Newsgroups: comp.lang.python Date: Wed, 6 Mar 2013 02:15:36 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=15.203.169.106; posting-account=1a8NwAoAAAB7s3B2HLVQDLqOtVhlP4u9 References: <390f0dc5-5750-4849-9433-a19d90cc8566@googlegroups.com> <3958fc2b-a2fe-4c85-a104-4c6f551cf787@googlegroups.com> <28828019-279a-4d8c-a7ea-ba677b4a8165@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 15.203.169.106 MIME-Version: 1.0 Subject: Re: sync databse table based on current directory data without losign previous values From: Bryan Devaney To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362565453 news.xs4all.nl 6913 [2001:888:2000:d::a6]:58150 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40624 On Wednesday, March 6, 2013 9:43:34 AM UTC, =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 = =CE=93=CE=BA=CF=8133=CE=BA wrote: > Perhaps because my filenames is in greek letters that thsi error is prese= nted but i'am not sure..... >=20 >=20 >=20 > Maybe we can join root+files and store it to the set() someway differenyl= .... well, the error refers to the line "if b.startswith('/'): " and states "'li= st' object has no attribute 'startswith'"=20 so b is assigned to a list type and list does not have a 'startswith' metho= d or attribute. I Thought .startswith() was a string method but if it's your own method the= n I apologize (though if it is, I personally would have made a class that i= nherited from list rather than adding it to list itself) can you show where you are assigning b (or if its meant to be a list or str= ing object)