Updating a Google Site Listpage/Listitem


Here is a quick and dirty (by fully functional) sample of updating a listpage/listitem in Google Sites using the Data API.

#!/usr/bin/python

import getpass
import gdata.sites.client
import gdata.sites.data

USER = 'test@example.com'
SITE = 'YOUR_SITE_NAME'
DOMAIN = 'YOUR_DOMAIN'  # or 'site' if you're not using a Google Apps domain.

# Setup our client.
client = gdata.sites.client.SitesClient(source='google-SitesListeItemUpdateTest', site=SITE, domain=DOMAIN)
client.ClientLogin(USER, getpass.getpass(), client.source)
client.ssl = True
client.http_client.debug = False

# Only fetch listpages.
feed = client.GetContentFeed(uri=client.MakeContentFeedUri() + '?kind=listpage')

# Work with first listpage we found.
lp = feed.GetListPages()[0]

print 'Listpage columns:'
for col in lp.data.column:
  print 'index: %s, name: %s' % (col.index, col.name)

# Query the listpage's listems and work with first row found.
li = client.GetContentFeed(uri=lp.feed_link.href).entry[0]

print 'Row contents:'
for field in li.field:
  print 'index: %s, name: %s, value: %s' % (field.index, field.name, field.text)

# Update the first fields/column's value.
li.field[0].text = 'Someone else'
entry = client.Update(li)

# Update the listpage's column heading.
#lp.data.column[0].name = 'New Heading'
#entry2 = client.Update(lp)

76 comments:

Drakimor said...

This is great! Any chance you could include a way to add an entry on top of updating existing ones?

dhaval said...

how do you add a new listitem?

Rezaqqi said...

Very good article, thank you for sharing the best tips.
-(:Please visit 2 my blog:)-

SEO Services said...

Awesome! Good job, keep posting few more like this.

dongsheng said...

Et voici la preuve photographique. Cette sneak peek [ci-dessus] illustre la stratgie d'tre abattu par l'oncle Karl lui-mme, et bien que nous tions secrtement cherche voir miss Dellal apportant ses battues cuirs noirs sur la campagne, shes regardant puissante dame comme porter un gilet blanc et arc dlicate dans leur cheveux tresss. Thunk Whoda ci.


Mais ne vous inquitez pas, le bord marque Alices continue tre en raison de tact pour saisines de eye-liner noir en plus d'une lvre rouge vif. Le modle est perch sur une table de toilette l'intrieur d'un appartement somptueux haussmannien, tout en prsentant un sac main gris matelass avec la collection Sac Hermès Mini Plume.

Nous sommes impatients d'en savoir vraiment ce blog Sac Hermès Shoulder Birkin.

Microsoft Office said...

Outlook 2010 provides you with a world-class experience to maintain your efficiency and keep in touch with personal and business networks. You can use download Outlook 2010, through a rich set of features and custom communication with one or more recipients.

Sandesh Saini said...

SEO Services Dehradun : We are provide affordable seo,sem,smo,ppc services , web design services and web development services in dehradun india.

thanh tung said...

Girl Xinh | Hot Girl | Cute Girl | Sexy Girl | Hot Girl Asian
Hot Girl | Lexi Belle | Sexy Girl | Cute Girl | Hot Asian Girl | Leah Dizon | Hot Girl Asian | Girl Xinh
socks proxy | socks5 | proxy free |proxy list

uknowme said...

We are provide affordable seo,sem,smo,ppc services , web design services and web development services in dehradun india.
build your own website

hirt motorsports service

epictoon said...

This is a helpful tips. Thanks for sharing the knowledge. cheap wow gold

Shahana Shafiuddin said...

Looks great, should work great too.

Unknown said...

Read all the related Posts:


Software Testing FAQ and Interview Questions and Answers

When to use a Test Automation Tool?

What is a Test Case Template?

What is a Test Scenario Template?

What is the structure of a software test plan?

Beginner's Guide to web testing

What is Manual Testing?

How to avoid missing defect in Software Testing?

Overview of Software Testing Risk Management

What is cloud testing - the future of software testing?

What are Entry and Exit Criteria in the Software testing life cycle?

Unknown said...

"Nice blog.. Thanks for sharing this blog information with us…

Web Development Company Chennai

Unknown said...

Thanks for a very helpful postYoutube Technical Support

Quân Đào said...

dich vu lam bao cao tai chinh tai my dinh
dich vu lam bao cao tai chinh tai hai ba trung
dich vu lam bao cao tai chinh tai ba dinh
dich vu lam bao cao tai chinh tai thanh tri
dich vu lam bao cao tai chinh tai hoang mai
dich vu lam bao cao tai chinh tai tay ho
dich vu lam bao cao tai chinh tai dong da
==========
dich vu ke toan thue tai dong da
dich vu ke toan thue tai tay ho
dich vu ke toan thue tai bac ninh
dich vu ke toan thue tai hai ba trung
dich vu ke toan thue tai tu liem
dich vu ke toan thue tai hoang mai
dich vu ke toan thue tai ba dinh
dich vu ke toan thue tai thanh tri
dich vu ke toan thue tai thai binh
cong ty lam dich vu ke toan tai vinh phuc
cong ty dich lam vu ke toan tai hung yen
cong ty dich lam vu ke toan tai phu tho
cong ty lam dich vu ke toan tai hai duong
cong ty lam dich vu ke toan tai hai phong
cong ty lam dich vu ke toan tai bac ninh
dich vu ke toan tai vinh phuc
dich vu ke toan tai hung yen
dich vu ke toan tai hai duong

Quân Đào said...

dich vu ke toan tai tay ho
dich vu ke toan tai ba đinh
dich vu ke toan tai hoang mai
dich vu ke toan tai thanh tri
dich vu ke toan tai dong da
dich vu ke toan tai tu liem
dich vu ke toan tai ha dong
dich vu ke toan tai long bien
dich vu ke toan tai thanh xuan
dich vu ke toan tai hai phong
dich vu ke toan tai bac ninh
dich vu ke toan tai hai ba trung
dich vu ke toan tai dong anh
dich vu ke toan tai gia lam
dich vu ke toan tai ung hoa
dich vu ke toan tai quoc oai
dich vu ke toan tai son tay
dich vu ke toan tai thanh oai
hoc ke toan tong hop
dich vu ke toan thue tron goi
dich vu bao cao tai chinh
dia chi hoc ke toan tong hop
khoa hoc ke toan tong hop
hoc chung chi ke toan
dich vu ke toan thue tai tphcm
lớp học kế toán tổng hợp
lớp học kế toán thực hành

Quân Đào said...

dia chi hoc ke toan tai cau giay
dia chi hoc ke toan tai ha dong
dia chi hoc ke toan tai bac ninh
trung tam dao tao ke toan tai ha dong
trung tam dao tao ke toan tai cầu giấy
trung tam dao tao ke toan tai thanh xuan
trung tam dao tao ke toan tai tphcm
khóa học kế toán tổng hợp tại hải phòng
khóa học kế toán tổng hợp tại tại bắc ninh
khóa học kế toán tổng hợp tại tphcm
khóa học kế toán tổng hợp tại hà nội
trung tam dao tao ke toan tai quan 3
trung tam dao tao ke toan tai binh duong
trung tam dao tao ke toan tai bac ninh
trung tam dao tao ke toan tai hai phong

Quân Đào said...

dich vu ke toan thue tai quan 12
dich vu ke toan thue tai quan 11
dich vu ke toan thue tai quan 10
dich vu ke toan thue tai quan 9
dich vu ke toan thue tai quan 8
dich vu ke toan thue tai quan 7
dich vu ke toan thue tai quan 6
dich vu ke toan thue tai quan 5
dich vu ke toan thue tai quan 4
dich vu ke toan thue tai quan 3
dich vu ke toan thue tai quan 2
dich vu ke toan thue tai quan 1
dich vu ke toan thue tai quan tan phu
dich vu ke toan thue tai quan binh tan
dich vu ke toan thue tai quan phu nhuan
dich vu ke toan thue tai quan tan binh
dich vu ke toan thue tai quan go vap
dich vu ke toan thue tai quan thu duc
dich vu ke toan thue tai quan binh thanh
dich vu ke toan thue tai huyen can gio
dich vu ke toan thue tai huyen nha be
dich vu ke toan thue tai huyen binh chanh
dich vu ke toan thue tai huyen hoc mon
dich vu ke toan thue tai huyen cu chi
dich vu ke toan thue tai huyen can gio

Unknown said...

karya
kuherbal
baca selengkapnya
sumber

Unknown said...

kami tawar
obat
klik disini
sumber
blognya
read more
karya
kuherbal
baca selengkapnya
sumber

alone said...

Bài viết rất hay, thank đã chia sẽ
--------------------------------------------------
Chuyên viên Tư Vấn BĐS DKRS Mai Đình Duy
Click xem chi tiết: Căn hộ dreamhome residence quận Gò Vấp hoặc can ho dreamhome residence quan go vap

Unknown said...

Diễn Đàn Rao Vặt
Rao Vặt Cấp Platinum
Rao Vặt Cấp Vàng Bạc Đá Quý
Rao vặt Linh Tinh
› Diễn đàn
Địa chỉ hay Địa điểm văn hóa
Địa chỉ hay Ảnh viện, áo cưới
Địa chỉ hay Khu vui chơi, giải trí
Địa chỉ hay Nhà hàng,khách sạn
Địa điểm khác
Bất Động Sản Nhà mặt phố
Bất Động Sản Đất vườn
Bất Động Sản Biệt thự, liền kề
Bất Động Sản Đất nền dự án

Unknown said...

Dịch vụ kế toán ACB chuyên cung cấp Dich vu ke toan trọn gói uy tín chuyên nghiêp giá rẻ nhất tại HCM và các tỉnh lân cận với chi phí bỏ ra từ 500.000-1.500.000đ.
Liên hệ: Dịch vụ kế toán , Dich vu ke toan.
Lầu 4, Tòa nhà Long Mã, 602 Cộng Hòa,P.13,Q.Tân Bình,HCM.
Hotline: (08) 62 97 97 97 - 0966 660 888.

Unknown said...

Thanks
http://rachmadshare.blogspot.com
http://fashionmuslim99.blogspot.com
http://peluangusahasampingan99.blogspot.com
http://sejutadesainrumah.blogspot.com
http://usahasampingan24.blogspot.com/
http://hargamesin24.blogspot.com/
http://bebasjerawatan.blogspot.com
usaha sampingan
peluang usaha sampingan
usaha sampingan modal kecil
usaha sampingan di rumah
usaha sampingan untuk karyawan
macam-macam usaha sampingan
usaha sampingan tanpa modal
jenis usaha sampingan
usaha sampingan ibu rumah tangga
usaha sampingan yang menguntungkan
usaha sampingan karyawan
usaha sampingan mahasiswa
macam usaha sampingan

Agen de Nature Asli said...

I read few articles on this site and I think that your web blog is real interesting and Power to the People of excellent information.
tank's
www.obatkondiloma.com cara menyembuhkan kutil kelamin

Unknown said...

Nice informasinya gan? :)

Unknown said...

Nice blog :)
Masker Roro Mendut Jerawat Asli
Masker Roro Mendut Untuk Jerawat Murah
Obat Jerawat Roro Mendut Terbaik
Lulur Jerawat Roro Mendut Gratis Ongkir !

Unknown said...

Very cool! Love reading your blog!
Vid Reaper Review
Vid Reaper Energy
Vid Reaper Bonus
Vid Reaper Review
Vid Reaper Energy
Vid Reaper Bonus
Vid Reaper Review
Vid Reaper Energy
Vid Reaper Bonus
Vid Reaper Review
Vid Reaper Energy
Vid Reaper Bonus

Unknown said...

I really thank the author of this article, the article has great significance for me, it just leads me to do better things for this life. Very meaningful, thank you very much, wish you happy
Mobimatic Review
Mobimatic App Builder
Mobimatic Bonus
Vid Reaper Bonus
Mobimatic App Builder
Mobimatic Bonus
Vid Reaper Bonus
Mobimatic App Builder
Mobimatic Bonus
Vid Reaper Bonus
Mobimatic App Builder
Mobimatic Bonus
Vid Reaper Bonus
Mobimatic App Builder
Mobimatic Bonus

Unknown said...

I really thank the author of this article, the article has great significance for me, it just leads me to do better things for this life. Very meaningful, thank you very much, wish you happy
Mobimatic Review
Mobimatic App Builder
Mobimatic Bonus
Mobimatic Review
Mobimatic App Builder
Mobimatic Bonus
Mobimatic Review
Mobimatic App Builder
Mobimatic Bonus
Mobimatic Review
Mobimatic App Builder
Mobimatic Bonus
Mobimatic Review
Mobimatic App Builder
Mobimatic Bonus
Mobimatic Review
Mobimatic App Builder
Mobimatic Bonus

Unknown said...

Nice Post!!
some related info here
http://quicksupportservice.com/

Unknown said...

2017 honda crv

model rumah minimalis

Tutorial Hijab

Unknown said...

2017 honda crv

model rumah minimalis

Tutorial Hijab

Unknown said...

liền kề tasco xuân phương
biệt thự tasco xuân phương

lien ke tasco xuan phuong

biet thu tasco xuan phuong

liền kề xuân phương tasco

biệt thự xuân phương tasco
biet thu xuan phuong tasco

lien ke xuan phuong tasco
lien ke xuan phuong

biet thu xuan phuong

liền kề xuân phương

biệt thự xuân phương
biệt thự liền kề xuân phương

biệt thự liền kề tasco

bán biệt thự xuân phương

bán liền kề xuân phương
bán liền kề tasco
bán biệt thự tasco
khu đô thị xuân phương
bảng giá liền kề xuân phương
mặt bằng liền kề xuân phương

liền kề mỹ đình

xuân phương tasco

Unknown said...

Digital marketing Blogger
Facebook updates
Google updates
SEO updatesSMO updates
Digital marketing updates
Guest post

Unknown said...

thank you for this useful information.
Visit:

free govt job alert
sarkari exam result
free govt job alert
latest job alert
latest govt jobs notifications
govt jobs in india

Keep sharing such useful information.

Unknown said...

sarkari job

Unknown said...

nice one
Kitchen equipment in India

digitalvandhna said...

India classified submission sites

shivani said...

A befuddling web diary I visit this blog, it's incredibly grand. Strangely, in this present blog's substance made motivation behind fact and sensible. The substance of information is instructive
Oracle Fusion Financials Online Training
Oracle Fusion HCM Online Training
Oracle Fusion SCM Online Training

uttam kumar said...

for Online Promotion and digital marketing course in delhi propelled Marketing There are various Internet Marketing Institute in Laxminagar mechanized publicizing establishment for understudies can get acquainted with digital marketing institute in noida the best progressed exhibiting foundation in Delhi that willdigital marketing course in ghaziabad help you with landing position with mind-boggling pay in the reputated relationship in which can the best modernized promoting

INTRADOTE (**OFFICIAL**) said...

kalviseithi

Unknown said...

This post is secured with accommodating themes with brilliant depiction.
https://myseokhazana.com

shivani said...

A befuddling web diary I visit this blog, it's incredibly grand. Strangely, in this present blog's substance made motivation behind fact and sensible. The substance of information is instructive
Oracle Fusion Financials Online Training
Oracle Fusion HCM Online Training
Oracle Fusion SCM Online Training

cmtech said...

cam on ban rat nhieu vi thong tin bai viet
khóa tủ locker

cmtech said...

"""i like this
cửa gỗ công nghiệp mdf"""

Unknown said...

Unprecedented Article! I genuinely recognize this.You are so great! This issue has and still is so noteworthy and you have kept an eye on it so Informative.
Contact us :- https://www.login4ites.com/


Unknown said...

This is the most unsurprising online journal which I have ever observed. I should need to express, this post will help me a ton to help my organizing on the SERP. Much reestablishing for sharing.
https://myseokhazana.com


cmtech said...

I need information from your document. Thank you for having great ideas
báo giá cửa cuốn austdoor

aditi36 said...

High Profile Independent Call Girls in Gurugram. Enjoy the Escorts Service in Gurgaon of Punjabi Girls, House Wife & Model Girls in your Budget | Gurgaon Call Girls.

saikiran said...

KloudWIFI truly believes that reliable, fast networks have been the game changers in driving innovation, productivity and instant collaboration supported by the relentless growth of convenient cloud-hosted applications. merakisequrity cameras partners in india

Plakat Cepat said...

Ubin akrilik tidak dapat dipungkiri bahwa setiap orang selalu tertarik pada hadiah, promosi, dan diskon khusus. Tentu saja, ini berlaku untuk semua pemilik perusahaan. Penggunaan anggaran yang lebih baik sangat penting. Jangan lewatkan solusi sederhana sehingga perusahaan Plakat Akrilik Anda dapat memesan peralatan produksi dan barang habis pakai. Kualitas yang menarik penting dalam hal ini. Pemilik perusahaan memiliki kualitas barang yang mereka butuhkan, tidak hanya untuk pementasan, tetapi juga untuk produksi atau promosi. Promosi memainkan peran penting setelah produksi karena produksi tidak berguna tanpa promosi.

repairtechsolutions said...

It's always useful to read through online google pixel display repair content from other authors and use a little something online nokia display repair from other web sites. I blog often and I truly appreciate your content. Your article has truly online iphone display repair piqued my interest.

repairtechsolutions said...

I will take a note of your online mi display repair blog and keep checking for new details about once per week. I opted in for your Feed online lg display repair too. Pretty! This was an incredibly wonderful post. Thank you for supplying this online mobile repair marathahalli information.

Smith John Live said...

For carrying out the Laserjet Pro M15w Wireless Setup you can follow the steps below. During the process of installation of the driver, you can choose the connection type as 'wireless' to organize a printer connected wirelessly.
You can ring our support team @ +1-888-214-1820 and clear away all your doubts regarding HP Laserjet Pro M15w Wireless Setup.

greyhankin said...

Being the best streaming service in the US, Roku has a keen track of all your activities using the Roku account that you create. Roku also needs you to complete the Roku.com/link for activating the account. Here are certain things that we assist you on to complete the Roku activation.
For any further queries on Roku com link Activation, feel free to contact our active customer care team, working round the clock at the toll-free number.

tech support said...

123.hp.com/dj2652
123.hp.com/setup 2652
123.hp.com/dj2622
123.hp.com/setup 6968
123.hp.com/setup 6978
123.hp.com/setup 5055
123.hp.com
123.hp.com/setup

Eric Kye said...

Are you stuck with how to setup Android TV and Remote? Just visit our page Androidtv.com/setup and then follow the instructions for the setup.

unknow said...

I really enjoyed your blog Thanks for sharing such an informative post.
https://www.loanvenue.com/
Business loan in Jharkhand
Apply for Loan in Jharkhand
Personal loan in Jharkhand
Instant Online Loan in Jharkhand
Personal loan in Bihar
Apply for Loan in Bihar
Business loan in Bihar

Maerouf said...

تصميم مواقع
تصميم موقع الكترونى
برمجة تطبيقات الجوال
حجز دومين سعودى
تصميم موقع حراج
سيرفر

الرياض
تصميم تطبيقات الجوال
دومين
استضافة سعودية

Andrew303john said...

Economics Assignment Help

We Fullassignment.com is among the best companies on the Economics assignment help writing market. We offer top-notch essays, Public Economics Assignment help research papers, thesis and other types of works that can be assigned to you at a high school or college. We also provide Psychology Assignment help from our experts.

https://fullassignment.com/

sammer mark said...

Thank you for the Post. You can connect us from remote areas. We have structured the advantageous strides by following which you can get accomplishment over your printer issues. These means are detailed by experienced geeks. Each progression is easy to pursue. We give learning to the two sorts of printers.
Connect Dell Printer to Wireless Network

Ecare Technologies said...

Thanks for sharing the information with us...
Java Course in Bangalore

sammer mark said...

Thank you for the Post it is a really good and nice post. Nowadays HP printers offer very good quality printouts and clear examination. In the event that you need to deal with your printer with the assistance of a product at that point Download HP Printer Assistant. It's a free utility programming offered by HP to its clients.
why is my HP Printing not printing

Unknown said...

Thanks for this blog are more informative contents step by step. I here attached my site would you see this blog.

7 tips to start a career in digital marketing

“Digital marketing is the marketing of product or service using digital technologies, mainly on the Internet, but also including mobile phones, display advertising, and any other digital medium”. This is the definition that you would get when you search for the term “Digital marketing” in google. Let’s give out a simpler explanation by saying, “the form of marketing, using the internet and technologies like phones, computer etc”.

we have offered to the advanced syllabus course digital marketing for available join now.

more details click the link now.

https://www.webdschool.com/digital-marketing-course-in-chennai.html

Unknown said...

Amazing article useful information.

Web designing trends in 2020

When we look into the trends, everything which is ruling today’s world was once a start up and slowly begun getting into. But Now they have literally transformed our lives on a tremendous note. To name a few, Facebook, Whats App, Twitter can be a promising proof for such a transformation and have a true impact on the digital world.

we have offered to the advanced syllabus course web design and development for available join now.

more details click the link.

https://www.webdschool.com/web-development-course-in-chennai.html

dorcassmith said...

When students seek Business Research Writing Services, they are assured of receiving award winning Business Term Paper Writing Services and Business Assignment Writing Services that meets all their writing needs.

Kuma Herbals said...

Thanks for sharing this information with us...
Unani Treatment in Bangalore

i Digital Academy said...

Thanks for sharing such an informative post with us...
Digital Marketing in Bangalore


sammer mark said...

Thank you for the Post. HP is a multinational tech giant that is highly regarded for its range of printers, desktops, laptops, and other drivers and software. They have a massive collection of printer models, such as Laserjet, Inkjet, Officejet, and so on. These ranges of printers are famous among the customers, owing to their features and reliability. In these type of Printer their is now very Common HP Printer Offline Issues

hrroman said...

If you are looking for the Marketing Assignments help then in this case you can opt for our Market Analysis Assignment.we provide the best Assignment Help Experts.We also provide Market segmentation Assignment for students across the globe. for more information contact us +16692714848.

monu said...

I read your post and it is good to read, thank you heartily for writing such a post.
Kerala Lottery Result

Kerala Lottery Result Today

anki said...

thanks foposting thesekind of content they are really amazing

chess board

Home Salon said...

I loved this article, keep updating interesting articles. I will be a regular reader

Housely
home decor
best home interior design
interior designer in dehradun
interior designer in gurgaon

hrroman said...

If you are looking for the Programming Database and IT Assignments then in this case you can opt for our Programming Database and IT Assignments Help.we provide the best Online Programming Assignment Help.We also provide Socket Programming in C for students across the globe. for more information contact us +16692714848.

sammer mark said...

If you don’t know what stuffs are required during the issues my screen is black after computer startup then visit one of the best printer related issues resolved by 123helpline is best company call our toll free number at anytime. We are available 24 × 7. Thank you for the post I am waitng for your next informative post.