Comments (3)
Thank you very much for your input. I guess i'll have to to programmatically edit the lsq or the lsg, and then import it that way.
Yeah, daunting is the right word. :D
from citric.
Hi @soberhofer, thanks for filing!
Unfortunately, the RemoteControl API doesn't seem to support it: https://forums.limesurvey.org/forum/development/134557-rpc-api-set-attributes-with-set_question_properties#241626.
The workaround recommended in that thread is to use import_question
1 with question files edited by other means:
with open("my_question_file.lsq", "rb") as file:
client.import_question(file, survey_id=..., group_id=...)
For question types where it's relevant, you should be looking for a random_order
attribute I think:
<row>
<qid><![CDATA[207]]></qid>
<attribute><![CDATA[random_order]]></attribute>
<value><![CDATA[1]]></value>
<language/>
</row>
Footnotes
from citric.
And FWIW I've wanted to add features to this library to help programmatically construct XML for questions and surveys but it seems daunting since the schema is undocumented ... and it's XML 😅
from citric.
Related Issues (20)
- [Bug]: Use boolean keyword-only arguments for
- Support the new REST API
- Refactor some `return` statements HOT 1
- [Bug]: Parameter `attributes` of `activate_tokens` is not passed to the RPC call
- [Bug]: <using citric with google colab HOT 7
- [Bug]: Improve error message when RPC response is not valid JSON
- [Bug]: LimeSurveyApiError: CDbCommand cannot execute SQL statement, String data, right truncated: 1406 Data too long for column HOT 7
- Add MySQL integration tests HOT 1
- Deprecation: Remove the `Session._header` attribute
- Publish documentation to Dash User-Contributed docsets
- [Bug]: edit button is not working HOT 2
- Integration tests failing on `import_survey`
- Document usage in R with `reticulate`
- Add links to how-to examples in README
- [Bug]: SSL certificate verification failure HOT 1
- [Bug]: Participant attributes "invited" and "reminded" don't seem to be included HOT 3
- Use calendar versioning?
- Feature: Support for survey and question object manipulation HOT 1
- Feature: Add name and description parameters of `import_group`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citric.